From 6c12c0ac201d436b617fcbec6f9f59a0e8da029b Mon Sep 17 00:00:00 2001 From: Jonathan Behrens Date: Tue, 23 Jul 2019 11:59:04 -0400 Subject: [PATCH] Bump rand version --- Cargo.toml | 4 ++-- src/map.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 173de86..7cd74ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rahashmap" -version = "0.2.13" +version = "0.2.14" authors = ["Jonathan Behrens ", "The Rust Project Developers"] license = "MIT/Apache-2.0" description = "Fork of standard library HashMap with additional functionality." @@ -10,4 +10,4 @@ repository = "https://github.com/fintelia/rahashmap" documentation = "https://docs.rs/rahashmap" [dependencies] -rand = "0.5.3" +rand = "0.7" diff --git a/src/map.rs b/src/map.rs index 669a2b0..05e5fd3 100644 --- a/src/map.rs +++ b/src/map.rs @@ -2509,8 +2509,7 @@ impl RandomState { // increment one of the seeds on every RandomState creation, giving // every corresponding HashMap a different iteration order. thread_local!(static KEYS: Cell<(u64, u64)> = { - let r = rand::OsRng::new(); - let mut r = r.expect("failed to create an OS RNG"); + let mut r = rand::thread_rng(); Cell::new((r.gen(), r.gen())) });