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/libflate | |
| 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/libflate')
| -rw-r--r-- | src/libflate/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libflate/lib.rs b/src/libflate/lib.rs index 8c4f74027a5..aa1550ae5b8 100644 --- a/src/libflate/lib.rs +++ b/src/libflate/lib.rs @@ -112,7 +112,7 @@ mod tests { #[test] fn test_flate_round_trip() { - let mut r = rand::task_rng(); + let mut r = rand::thread_rng(); let mut words = vec!(); for _ in range(0u, 20) { let range = r.gen_range(1u, 10); |
