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/egd | |
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/egd')
-rw-r--r-- | src/lib/entropy/egd/es_egd.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/entropy/egd/es_egd.cpp b/src/lib/entropy/egd/es_egd.cpp index 9b625d051..c3b75e8f5 100644 --- a/src/lib/entropy/egd/es_egd.cpp +++ b/src/lib/entropy/egd/es_egd.cpp @@ -137,8 +137,6 @@ EGD_EntropySource::~EGD_EntropySource() */ void EGD_EntropySource::poll(Entropy_Accumulator& accum) { - const size_t ENTROPY_BITS_PER_BYTE = 8; - std::lock_guard<std::mutex> lock(m_mutex); secure_vector<byte>& buf = accum.get_io_buf(BOTAN_SYSTEM_RNG_POLL_REQUEST); @@ -149,7 +147,7 @@ void EGD_EntropySource::poll(Entropy_Accumulator& accum) if(got) { - accum.add(buf.data(), got, ENTROPY_BITS_PER_BYTE); + accum.add(buf.data(), got, BOTAN_ENTROPY_ESTIMATE_STRONG_RNG); break; } } |