Re:A Taste of JavaScript's New Parallel Primitives
by brazzledazzle on Saturday May 07, 2016 @03:46AM
(#11648764)
So for OpenSSL's RNG vs. the operating system's CSPRNG is there a difference between forking and multi-threading?
Re:A Taste of JavaScript's New Parallel Primitives
by slavik81 on Saturday May 07, 2016 @06:53PM
(#11651724)
Yes. The problem with an in-process RNG and forking is that the RNG state is duplicated, so both processes get the same sequence of numbers. Multithreading just needs locking to prevent corruption because the state is shared.
Re:A Taste of JavaScript's New Parallel Primitives
by brazzledazzle on Sunday May 08, 2016 @01:19AM
(#11652743)
Thanks for taking the time to explain.
They discussed forking, but did not discuss multi-threading.