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]
This commit is contained in:
Simonas Kazlauskas 2014-12-28 02:20:47 +02:00
parent 0201334439
commit 1e89bbcb67
21 changed files with 98 additions and 98 deletions

View file

@ -724,7 +724,7 @@ pub fn fresh_name(src: &ast::Ident) -> ast::Name {
// following: debug version. Could work in final except that it's incompatible with
// good error messages and uses of struct names in ambiguous could-be-binding
// locations. Also definitely destroys the guarantee given above about ptr_eq.
/*let num = rand::task_rng().gen_uint_range(0,0xffff);
/*let num = rand::thread_rng().gen_uint_range(0,0xffff);
gensym(format!("{}_{}",ident_to_string(src),num))*/
}