diff options
author | lloyd <[email protected]> | 2013-11-08 21:09:36 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-11-08 21:09:36 +0000 |
commit | 9fab3b28e9b728dbe71bc5b0afc9a8c408de1d0e (patch) | |
tree | 95129c533c2a27840defdc956b4e2bb5f3c2e81d /src/entropy/proc_walk/es_ftw.cpp | |
parent | 51bdb06ac838b426cacdb4dd8a2efecbf67820ac (diff) |
Previously, AutoRNG was just a reference to the global rng, which can
cause a huge amount of lock contention in heavily multithreaded
code. Now each AutoRNG is its own uniquely seeded HMAC_RNG. The set of
entropy sources is shared rather than being per-RNG (so there is only
one open fd to /dev/random, etc). So reseeding is still a global lock,
but sharing the resources (open file descriptors, etc) across RNGs
seems worth the contention.
Remove Randpool, which was only used if HMAC_RNG was disabled at build.
Diffstat (limited to 'src/entropy/proc_walk/es_ftw.cpp')
0 files changed, 0 insertions, 0 deletions