diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-30 14:48:49 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-30 14:48:49 -0800 |
| commit | 77f2aac38936d711dadd0b54ce96b44990c21fd6 (patch) | |
| tree | e86c22786c0f8348bc7827aa19f81564dc0323f1 | |
| parent | 3e9c95e1f73eae1522362c4945ed672b6abdcf52 (diff) | |
| parent | c75e59ac0f19896ee9b211d7a471641108ea3316 (diff) | |
| download | rust-77f2aac38936d711dadd0b54ce96b44990c21fd6.tar.gz rust-77f2aac38936d711dadd0b54ce96b44990c21fd6.zip | |
Merge pull request #4687 from alexcrichton/hashmap-speedup
Use task local random when initializing LinearMap
| -rw-r--r-- | src/libcore/hashmap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/hashmap.rs b/src/libcore/hashmap.rs index 85765e262f2..ad3dd290679 100644 --- a/src/libcore/hashmap.rs +++ b/src/libcore/hashmap.rs @@ -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) } |
