Function sfmt::thread_rng
source · pub fn thread_rng() -> ThreadRngExpand description
Create a thread local RNG.
The seed of SFMT is generated by rand::thread_rng() on each thread.
let mut rng = sfmt::thread_rng();
rng.gen::<u32>(); // random u32