[][src]Function rand::weak_rng

pub fn weak_rng() -> XorShiftRng
Deprecated since 0.5.0:

removed in favor of SmallRng

DEPRECATED: use SmallRng instead.

Create a weak random number generator with a default algorithm and seed.

It returns the fastest Rng algorithm currently available in Rust without consideration for cryptography or security. If you require a specifically seeded Rng for consistency over time you should pick one algorithm and create the Rng yourself.

This will seed the generator with randomness from thread_rng.