Skip to content

Commit b2d1ac1

Browse files
committed
libcore: Remove mutable fields from rand.
1 parent ee78d81 commit b2d1ac1

File tree

6 files changed

+107
-90
lines changed

6 files changed

+107
-90
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

5757
pub fn linear_map_with_capacity<K:Eq + Hash,V>(
5858
initial_capacity: uint) -> HashMap<K, V> {
59-
let r = rand::task_rng();
59+
let mut r = rand::task_rng();
6060
linear_map_with_capacity_and_keys(r.gen(), r.gen(),
6161
initial_capacity)
6262
}

0 commit comments

Comments
 (0)