diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-01-30 02:43:11 -0500 | 
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-01-30 02:49:58 -0500 | 
| commit | c75e59ac0f19896ee9b211d7a471641108ea3316 (patch) | |
| tree | fa3a7336a3496d4726581344a80b7cf9c5d0b515 | |
| parent | 28ed9dc09e91c9e57095e75d22d59eab0fdd6d1a (diff) | |
| download | rust-c75e59ac0f19896ee9b211d7a471641108ea3316.tar.gz rust-c75e59ac0f19896ee9b211d7a471641108ea3316.zip  | |
Use task local random when initializing maps
| -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) }  | 
