diff options
| -rw-r--r-- | Cargo.toml | 3 | ||||
| -rw-r--r-- | src/util.rs | 3 | 
2 files changed, 2 insertions, 4 deletions
@@ -20,8 +20,7 @@ exclude = [".builds/*"]  lazy_static = "1.2"  libc = "0.2"  nitrokey-sys = "3.5" -rand_core = {version = "0.5", default-features = false, features = ["std"] } -rand_os = {version = "0.2"} +rand_core = {version = "0.5.1", features = ["getrandom"] }  [dev-dependencies]  nitrokey-test = "0.3" diff --git a/src/util.rs b/src/util.rs index a5dd1e5..5a56c55 100644 --- a/src/util.rs +++ b/src/util.rs @@ -5,8 +5,7 @@ use std::ffi::{CStr, CString};  use std::os::raw::{c_char, c_int};  use libc::{c_void, free}; -use rand_core::RngCore; -use rand_os::OsRng; +use rand_core::{OsRng, RngCore};  use crate::error::{Error, LibraryError};  | 
