]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12650 : huonw/rust/librand, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 12 Mar 2014 02:31:57 +0000 (19:31 -0700)
committerbors <bors@rust-lang.org>
Wed, 12 Mar 2014 02:31:57 +0000 (19:31 -0700)
Move std::rand to a separate rand crate

This functionality is not super-core and so doesn't need to be included
in std. It's possible that std may need rand (it does a little bit now,
for io::test) in which case the functionality required could be moved to
a secret hidden module and reexposed by librand.

Unfortunately, using #[deprecated] here is hard: there's too much to
mock to make it feasible, since we have to ensure that programs still
typecheck to reach the linting phase.

Also, deprecates/removes `rand::rng` (this time using `#[deprecated]`), since it's too easy to accidentally use inside a loop, making things very slow (have to read randomness from the OS and seed the RNG each time.)


Trivial merge