mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
Merge pull request #4687 from alexcrichton/hashmap-speedup
Use task local random when initializing LinearMap
This commit is contained in:
commit
77f2aac389
@ -62,7 +62,7 @@ pub mod linear {
|
||||
|
||||
pub fn linear_map_with_capacity<K: Eq Hash, V>(
|
||||
initial_capacity: uint) -> LinearMap<K, V> {
|
||||
let r = rand::Rng();
|
||||
let r = rand::task_rng();
|
||||
linear_map_with_capacity_and_keys(r.gen_u64(), r.gen_u64(),
|
||||
initial_capacity)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user