about summary refs log tree commit diff
path: root/src/libstd/rand
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/rand')
-rw-r--r--src/libstd/rand/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libstd/rand/mod.rs b/src/libstd/rand/mod.rs
index cc3c46f3610..a359fcf7a9f 100644
--- a/src/libstd/rand/mod.rs
+++ b/src/libstd/rand/mod.rs
@@ -225,6 +225,7 @@ use cell::RefCell;
 use clone::Clone;
 use io::IoResult;
 use iter::{Iterator, IteratorExt};
+use kinds::Copy;
 use mem;
 use rc::Rc;
 use result::Result::{Ok, Err};
@@ -245,7 +246,11 @@ pub mod reader;
 
 /// The standard RNG. This is designed to be efficient on the current
 /// platform.
-pub struct StdRng { rng: IsaacWordRng }
+pub struct StdRng {
+    rng: IsaacWordRng,
+}
+
+impl Copy for StdRng {}
 
 impl StdRng {
     /// Create a randomly seeded instance of `StdRng`.