guildxyz / guild-zk

8 stars 0 forks source link

I4 rng #56

Closed PopcornPaws closed 2 years ago

PopcornPaws commented 2 years ago

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 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.