about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/rand.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rand.rs b/src/libstd/rand.rs
index a6c1dca4342..b763c1c2d76 100644
--- a/src/libstd/rand.rs
+++ b/src/libstd/rand.rs
@@ -25,7 +25,7 @@ distributions like normal and exponential.
 use core::rand::RngUtil;
 
 fn main() {
-    let rng = rand::rng();
+    let mut rng = rand::rng();
     if rng.gen() { // bool
         println(fmt!("int: %d, uint: %u", rng.gen(), rng.gen()))
     }