diff options
author | Jack Lloyd <[email protected]> | 2015-11-28 11:43:00 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-11-28 11:43:00 -0500 |
commit | 466cc0fb0b1a072584c26f0949d377510c440d0d (patch) | |
tree | 1ddf0107d788b1696304bdb604fe685a63163d5e /src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp | |
parent | 3bdf9d1bd8345fc2aa0f1c5ec0261921a77988cf (diff) |
Push the hardcoded entropy estimates up to build.h
Defaults should be fine for everyone but it makes the values more transparent
Diffstat (limited to 'src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp')
-rw-r--r-- | src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp b/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp index 08b464ff0..4f1ed87bd 100644 --- a/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp +++ b/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp @@ -15,13 +15,11 @@ namespace Botan { */ void Darwin_SecRandom::poll(Entropy_Accumulator& accum) { - const size_t ENTROPY_BITS_PER_BYTE = 8; - secure_vector<byte>& buf = accum.get_io_buf(BOTAN_SYSTEM_RNG_POLL_REQUEST); if(0 == SecRandomCopyBytes(kSecRandomDefault, buf.size(), buf.data())) { - accum.add(buf.data(), buf.size(), ENTROPY_BITS_PER_BYTE); + accum.add(buf.data(), buf.size(), BOTAN_ENTROPY_ESTIMATE_STRONG_RNG); } } |