summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-01-07 04:56:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-01-07 04:56:53 +0000
commit863b2e9e8ac2b7c579d515f97a34123a6ca87a62 (patch)
tree6535b97607ec59f67c2cc829c407bc1a76652ae5 /regress/sys
parent930a9cd1a981211e2e2383d17793ab6655f02e61 (diff)
substantial rewrite. put a very thin mutex at the entropy-collection
side so that entropy events can come in from any kernel context. place a 2nd very thin mutex at the call-down path as well, so that any context can request random data. in the middle, meet with a bcopy that has no mutex, but copying unlocked data is actually a benefit. move the pool->MD5->RC4init sequence into a workq driven from a timeout, so that we can do all the heavy work without any mutex held or IPL; only grab the 2nd mutex to swap to a new RC4 state. (this workq design from tedu) ok dlg tedu
Diffstat (limited to 'regress/sys')
0 files changed, 0 insertions, 0 deletions