Skip to content

Commit

Permalink
Revert "libcore: unify gen_<type> methods on rand::RngUtil into t…
Browse files Browse the repository at this point in the history
…he generic `gen`."

This reverts commit 4a24f10
as part of Felix's attempt to resolve Issue rust-lang#6061.
  • Loading branch information
pnkfelix committed Apr 25, 2013
1 parent 1d53bab commit 699e95e
Show file tree
Hide file tree
Showing 15 changed files with 247 additions and 106 deletions.
2 changes: 1 addition & 1 deletion src/libcore/hashmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn resize_at(capacity: uint) -> uint {
pub fn linear_map_with_capacity<K:Eq + Hash,V>(
initial_capacity: uint) -> HashMap<K, V> {
let r = rand::task_rng();
linear_map_with_capacity_and_keys(r.gen(), r.gen(),
linear_map_with_capacity_and_keys((*r).gen_u64(), (*r).gen_u64(),
initial_capacity)
}

Expand Down
Loading

0 comments on commit 699e95e

Please sign in to comment.