Skip to content

Commit

Permalink
Bump rand version
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Jul 23, 2019
1 parent 4528c17 commit 6c12c0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rahashmap"
version = "0.2.13"
version = "0.2.14"
authors = ["Jonathan Behrens <[email protected]>", "The Rust Project Developers"]
license = "MIT/Apache-2.0"
description = "Fork of standard library HashMap with additional functionality."
Expand All @@ -10,4 +10,4 @@ repository = "https://github.com/fintelia/rahashmap"
documentation = "https://docs.rs/rahashmap"

[dependencies]
rand = "0.5.3"
rand = "0.7"
3 changes: 1 addition & 2 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
});

Expand Down

0 comments on commit 6c12c0a

Please sign in to comment.