提交 77f2aac3 编写于 作者: T Tim Chevalier

Merge pull request #4687 from alexcrichton/hashmap-speedup

Use task local random when initializing LinearMap
......@@ -62,7 +62,7 @@ enum SearchResult {
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)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册