From c75e59ac0f19896ee9b211d7a471641108ea3316 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 30 Jan 2013 02:43:11 -0500 Subject: [PATCH] Use task local random when initializing maps --- src/libcore/hashmap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( initial_capacity: uint) -> LinearMap { - let r = rand::Rng(); + let r = rand::task_rng(); linear_map_with_capacity_and_keys(r.gen_u64(), r.gen_u64(), initial_capacity) }