about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-03-23 16:31:52 -0700
committerbors <bors@rust-lang.org>2014-03-23 16:31:52 -0700
commit2c7f3b850ce11c70d5bef2b2d5155a1f0fdaa421 (patch)
tree120a141766e1d3d1faf0c42d3d31a393e22230be /src/libstd/io
parent1599ac9cf26578c881d2235887d694eab4784adb (diff)
parent8feb2ddf12b2b4a6df783691d8b41fe6f3364a3e (diff)
downloadrust-2c7f3b850ce11c70d5bef2b2d5155a1f0fdaa421.tar.gz
rust-2c7f3b850ce11c70d5bef2b2d5155a1f0fdaa421.zip
auto merge of #13096 : sstewartgallus/rust/cleanup-test-warnings, r=huonw
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/fs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/fs.rs b/src/libstd/io/fs.rs
index 870f33733f4..8681ab21f10 100644
--- a/src/libstd/io/fs.rs
+++ b/src/libstd/io/fs.rs
@@ -1282,10 +1282,10 @@ mod test {
     }
 
     iotest!(fn binary_file() {
-        use rand::{rng, Rng};
+        use rand::{Rng, task_rng};
 
         let mut bytes = [0, ..1024];
-        rng().fill_bytes(bytes);
+        task_rng().fill_bytes(bytes);
 
         let tmpdir = tmpdir();