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