about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-29 16:36:29 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-29 16:36:29 -0800
commit9cbbfee8a4738663625e373f165b8ec5f6317ef4 (patch)
tree7738cc422f972c8ce62ed56b7d77f4b284d01c5a /src/libstd/sync
parent3385ff7757e8eb328c9fc10f3b1ee057bcb2fc2f (diff)
parent1e89bbcb67020892bc0af5af218c35f0fd453fa4 (diff)
downloadrust-9cbbfee8a4738663625e373f165b8ec5f6317ef4.tar.gz
rust-9cbbfee8a4738663625e373f165b8ec5f6317ef4.zip
rollup merge of #20264: nagisa/threadrng
Since runtime is removed, rust has no tasks anymore and everything is moving
from being task-* to thread-*. Let’s rename TaskRng as well!

This is a breaking change. If a breaking change for consistency is not desired, feel free to close.
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/rwlock.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs
index 29cc1f8563f..1b7a7f3f323 100644
--- a/src/libstd/sync/rwlock.rs
+++ b/src/libstd/sync/rwlock.rs
@@ -388,7 +388,7 @@ mod tests {
         for _ in range(0, N) {
             let tx = tx.clone();
             spawn(move|| {
-                let mut rng = rand::task_rng();
+                let mut rng = rand::thread_rng();
                 for _ in range(0, M) {
                     if rng.gen_weighted_bool(N) {
                         drop(R.write().unwrap());