Hacker News new | ask | show | jobs
by slavik81 3698 days ago
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.
1 comments

Thanks for taking the time to explain.