Skip to content

Commit 394f0d4

Browse files
committed
Revert libcore: unify gen_<type> methods on rand::RngUtil into the generic gen.
This reverts 4a24f10
1 parent 0604468 commit 394f0d4

14 files changed

+246
-105
lines changed

src/libcore/hashmap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn resize_at(capacity: uint) -> uint {
5656
pub fn linear_map_with_capacity<K:Eq + Hash,V>(
5757
initial_capacity: uint) -> HashMap<K, V> {
5858
let r = rand::task_rng();
59-
linear_map_with_capacity_and_keys(r.gen(), r.gen(),
59+
linear_map_with_capacity_and_keys((*r).gen_u64(), (*r).gen_u64(),
6060
initial_capacity)
6161
}
6262

0 commit comments

Comments
 (0)