Update rand to 0.7 (fixes #24448)

This commit is contained in:
Anthony Ramine 2019-10-16 14:07:39 +02:00
parent 4f8cfd9b48
commit 785a344e32
42 changed files with 200 additions and 254 deletions

View file

@ -13,7 +13,7 @@ path = "lib.rs"
[dependencies]
lazy_static = "1"
log = "0.4"
rand = "0.6"
rand_core = "0.4"
rand_isaac = "0.1"
uuid = "0.7"
rand = "0.7"
rand_core = "0.5"
rand_isaac = "0.2"
uuid = "0.8"

View file

@ -31,10 +31,7 @@ use uuid::{Builder, Uuid, Variant, Version};
// The shared RNG which may hold on to a file descriptor
lazy_static! {
static ref OS_RNG: Mutex<OsRng> = match OsRng::new() {
Ok(r) => Mutex::new(r),
Err(e) => panic!("Failed to seed OsRng: {}", e),
};
static ref OS_RNG: Mutex<OsRng> = Mutex::new(OsRng);
}
// Generate 32K of data between reseedings