mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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
|
@ -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