Problem is, in a multithreaded environment (when using rayon) you cannot pass a &mut Rng between threads, so you would need Arc and Mutex to make it work. I think it's probably cleaner and easier to just create a let mut rng = OsRng instance for every thread than playing around with Arc pointers.
Description
Aims to resolve #4
Problem is, in a multithreaded environment (when using rayon) you cannot pass a
&mut Rng
between threads, so you would needArc
andMutex
to make it work. I think it's probably cleaner and easier to just create alet mut rng = OsRng
instance for every thread than playing around withArc
pointers.