diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2014-12-28 02:20:47 +0200 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2014-12-28 13:46:35 +0200 |
| commit | 1e89bbcb67020892bc0af5af218c35f0fd453fa4 (patch) | |
| tree | 7f76435dc4fb50ab581a1f3043f12e3d7f5abca7 /src/libstd/sync | |
| parent | 0201334439393bed205c1148bed425b80aab8c22 (diff) | |
| download | rust-1e89bbcb67020892bc0af5af218c35f0fd453fa4.tar.gz rust-1e89bbcb67020892bc0af5af218c35f0fd453fa4.zip | |
Rename TaskRng to 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! * Rename TaskRng to ThreadRng * Rename task_rng to thread_rng [breaking-change]
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/rwlock.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs index 76d05d9bfd4..7b6a6be7885 100644 --- a/src/libstd/sync/rwlock.rs +++ b/src/libstd/sync/rwlock.rs @@ -394,7 +394,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()); |
