mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update rand to 0.7 (fixes #24448)
This commit is contained in:
parent
4f8cfd9b48
commit
785a344e32
42 changed files with 200 additions and 254 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue