summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-12-27 23:07:26 +0100
committerRobin Krahl <robin.krahl@ireas.org>2019-12-27 23:07:26 +0100
commit0bffc7931e011b4c0c046ed7608fbe9b7a1ffd19 (patch)
treec850d53faff809a8b3dcab68c16c2848c0c0c77e /src
parentc85f11a4d57bd8b3c2d5e00264eb27f06e8ae08c (diff)
downloadnitrokey-rs-0bffc7931e011b4c0c046ed7608fbe9b7a1ffd19.tar.gz
nitrokey-rs-0bffc7931e011b4c0c046ed7608fbe9b7a1ffd19.tar.bz2
Replace rand_os::OsRng with rand_core::OsRng
rand_os::OsRng has been deprecated. Instead we can use rand_core with the getrandom feature.
Diffstat (limited to 'src')
-rw-r--r--src/util.rs3
1 files changed, 1 insertions, 2 deletions
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};