aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/util/workqueue.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/util/workqueue.rs')
-rw-r--r--src/components/util/workqueue.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/util/workqueue.rs b/src/components/util/workqueue.rs
index 5caa6ff7ca0..ccfbc03da1a 100644
--- a/src/components/util/workqueue.rs
+++ b/src/components/util/workqueue.rs
@@ -8,12 +8,12 @@
//! higher-level API on top of this could allow safe fork-join parallelism.
use native;
-use rand;
use rand::{Rng, XorShiftRng};
use std::mem;
+use std::rand::weak_rng;
use std::sync::atomics::{AtomicUint, SeqCst};
use std::sync::deque::{Abort, BufferPool, Data, Empty, Stealer, Worker};
-use std::task::TaskOpts;
+use rustrt::task::TaskOpts;
/// A unit of work.
///
@@ -217,7 +217,7 @@ impl<QueueData: Send, WorkData: Send> WorkQueue<QueueData, WorkData> {
port: worker_port,
chan: supervisor_chan.clone(),
other_deques: vec!(),
- rng: rand::weak_rng(),
+ rng: weak_rng(),
});
}