3 ms·
So for OpenSSL's RNG vs. the operating system's CSPRNG is there a difference between forking and multi-threading?
by brazzledazzle 11y ago
So for OpenSSL's RNG vs. the operating system's CSPRNG is there a difference between forking and multi-threading?
- slavik81 11y agoYes. 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.
- brazzledazzle 11y agoThanks for taking the time to explain.