Y
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
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.
link
brazzledazzle
3697 days ago
Thanks for taking the time to explain.
link