diff options
author | lloyd <[email protected]> | 2012-02-17 13:16:17 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-02-17 13:16:17 +0000 |
commit | cee8707b07952838e378ea7193af9eff83800b4e (patch) | |
tree | ec36628b4b23822b5f033ab7a39921734ce4c99c /src/entropy/cryptoapi_rng | |
parent | 718d9503e3bad05fa58d61af11784976a495e21a (diff) |
Be more conservative about entropy estimates. In particular, instead
of giving /dev/random, EGD, and CryptoAPI a full 8 bits per byte of
entropy, estimate at 6 bits.
In the proc walker, allow more files to be read, read more of any
particular file, and count each bit for 1/10 as much as before.
Reading more of the file seems especially valuable, as some files are
quite random, whereas others are very static, and this should ensure
we read more of the actually unpredictable inputs.
Prefer /dev/random over /dev/urandom
Diffstat (limited to 'src/entropy/cryptoapi_rng')
-rw-r--r-- | src/entropy/cryptoapi_rng/es_capi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entropy/cryptoapi_rng/es_capi.cpp b/src/entropy/cryptoapi_rng/es_capi.cpp index d3d076641..c9069ce65 100644 --- a/src/entropy/cryptoapi_rng/es_capi.cpp +++ b/src/entropy/cryptoapi_rng/es_capi.cpp @@ -65,7 +65,7 @@ void Win32_CAPI_EntropySource::poll(Entropy_Accumulator& accum) if(got) { - accum.add(&io_buffer[0], io_buffer.size(), 8); + accum.add(&io_buffer[0], io_buffer.size(), 6); break; } } |