Function make_rng
Source pub fn make_rng<R: SeedableRng>() -> R
Available on crate feature sys_rng only.
Expand description
Construct and seed an RNG
This method yields a seeded RNG, using rng (ThreadRng) if enabled or
SysRng otherwise.
§Examples
let mut rng: rand::rngs::SmallRng = rand::make_rng();
§Security
Refer to ThreadRng#Security.