From 466cc0fb0b1a072584c26f0949d377510c440d0d Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sat, 28 Nov 2015 11:43:00 -0500 Subject: Push the hardcoded entropy estimates up to build.h Defaults should be fine for everyone but it makes the values more transparent --- src/lib/entropy/egd/es_egd.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lib/entropy/egd') 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 lock(m_mutex); secure_vector& 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; } } -- cgit v1.2.3