Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
brazzledazzle
9y ago
0 comments
Share
So for OpenSSL's RNG vs. the operating system's CSPRNG is there a difference between forking and multi-threading?
0 comments
default
newest
oldest
slavik81
9y 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.
brazzledazzle
OP
9y ago
Thanks for taking the time to explain.
j
/
k
navigate · click thread line to collapse