Skip to content

Commit 6c12c0a

Browse files
committed
Bump rand version
1 parent 4528c17 commit 6c12c0a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rahashmap"
3-
version = "0.2.13"
3+
version = "0.2.14"
44
authors = ["Jonathan Behrens <[email protected]>", "The Rust Project Developers"]
55
license = "MIT/Apache-2.0"
66
description = "Fork of standard library HashMap with additional functionality."
@@ -10,4 +10,4 @@ repository = "https://github.com/fintelia/rahashmap"
1010
documentation = "https://docs.rs/rahashmap"
1111

1212
[dependencies]
13-
rand = "0.5.3"
13+
rand = "0.7"

src/map.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2509,8 +2509,7 @@ impl RandomState {
25092509
// increment one of the seeds on every RandomState creation, giving
25102510
// every corresponding HashMap a different iteration order.
25112511
thread_local!(static KEYS: Cell<(u64, u64)> = {
2512-
let r = rand::OsRng::new();
2513-
let mut r = r.expect("failed to create an OS RNG");
2512+
let mut r = rand::thread_rng();
25142513
Cell::new((r.gen(), r.gen()))
25152514
});
25162515

0 commit comments

Comments
 (0)