File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " rahashmap"
3
- version = " 0.2.13 "
3
+ version = " 0.2.14 "
4
4
authors = [
" Jonathan Behrens <[email protected] >" ,
" The Rust Project Developers" ]
5
5
license = " MIT/Apache-2.0"
6
6
description = " Fork of standard library HashMap with additional functionality."
@@ -10,4 +10,4 @@ repository = "https://github.com/fintelia/rahashmap"
10
10
documentation = " https://docs.rs/rahashmap"
11
11
12
12
[dependencies ]
13
- rand = " 0.5.3 "
13
+ rand = " 0.7 "
Original file line number Diff line number Diff line change @@ -2509,8 +2509,7 @@ impl RandomState {
2509
2509
// increment one of the seeds on every RandomState creation, giving
2510
2510
// every corresponding HashMap a different iteration order.
2511
2511
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( ) ;
2514
2513
Cell :: new( ( r. gen ( ) , r. gen ( ) ) )
2515
2514
} ) ;
2516
2515
You can’t perform that action at this time.
0 commit comments