Skip to content

Commit

Permalink
remove import
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel07l committed Aug 23, 2023
1 parent b5258f3 commit 443126f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/randombytes.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use rand_core::*;
use rand_core::OsRng;

pub fn randombytes(x: &mut [u8], len: usize) {
//thread_rng().fill_bytes(&mut x[..len])
let _ = match OsRng.try_fill_bytes(&mut x[..len]) {
Ok(_) => Ok(()),
Err(_) => Err(()),
Expand Down

0 comments on commit 443126f

Please sign in to comment.