File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ cfg_if! {
243
243
/// In general, `getrandom` will be fast enough for interactive usage, though
244
244
/// significantly slower than a user-space CSPRNG; for the latter consider
245
245
/// [`rand::thread_rng`](https://docs.rs/rand/*/rand/fn.thread_rng.html).
246
- pub fn getrandom ( dest : & mut [ u8 ] ) -> Result < ( ) , error :: Error > {
246
+ pub fn getrandom ( dest : & mut [ u8 ] ) -> Result < ( ) , Error > {
247
247
if dest. is_empty ( ) {
248
248
return Ok ( ( ) ) ;
249
249
}
Original file line number Diff line number Diff line change 7
7
// except according to those terms.
8
8
9
9
//! Implementation for VxWorks
10
- use crate :: error:: Error ;
11
10
use crate :: util_libc:: last_os_error;
11
+ use crate :: Error ;
12
12
use core:: sync:: atomic:: { AtomicBool , Ordering :: Relaxed } ;
13
13
14
14
pub fn getrandom_inner ( dest : & mut [ u8 ] ) -> Result < ( ) , Error > {
Original file line number Diff line number Diff line change 10
10
extern crate std;
11
11
12
12
use core:: mem;
13
+ use std:: sync:: Once ;
13
14
14
15
use stdweb:: js;
15
16
use stdweb:: unstable:: TryInto ;
16
17
use stdweb:: web:: error:: Error as WebError ;
17
18
18
19
use crate :: Error ;
19
- use std:: sync:: Once ;
20
20
21
21
#[ derive( Clone , Copy , Debug ) ]
22
22
enum RngSource {
You can’t perform that action at this time.
0 commit comments