Hacker News new | ask | show | jobs
by brazzledazzle 3698 days ago
So for OpenSSL's RNG vs. the operating system's CSPRNG is there a difference between forking and multi-threading?
1 comments

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.
Thanks for taking the time to explain.