aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-03-22 19:53:37 +0000
committerlloyd <[email protected]>2014-03-22 19:53:37 +0000
commiteb0e85280e1feb4eaa66847fe60f9f6c713a8d4e (patch)
tree211325354ac4e8eabdc803c27d6fab7de0bf4193 /src/lib/entropy
parent8ce4a125a6eaf012821852ce629ead2466a2fde8 (diff)
Add rng command which can dump RNG outputs or raw entropy samples
Diffstat (limited to 'src/lib/entropy')
-rw-r--r--src/lib/entropy/entropy_src.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/entropy/entropy_src.h b/src/lib/entropy/entropy_src.h
index d42f6eca2..1635a936c 100644
--- a/src/lib/entropy/entropy_src.h
+++ b/src/lib/entropy/entropy_src.h
@@ -24,7 +24,7 @@ class BOTAN_DLL Entropy_Accumulator
* Initialize an Entropy_Accumulator
* @param goal is how many bits we would like to collect
*/
- Entropy_Accumulator(std::function<bool (const byte[], size_t, size_t)> accum) :
+ Entropy_Accumulator(std::function<bool (const byte[], size_t, double)> accum) :
m_accum_fn(accum), m_done(false) {}
virtual ~Entropy_Accumulator() {}
@@ -73,7 +73,7 @@ class BOTAN_DLL Entropy_Accumulator
add(&v, sizeof(T), entropy_bits_per_byte);
}
private:
- std::function<bool (const byte[], size_t, size_t)> m_accum_fn;
+ std::function<bool (const byte[], size_t, double)> m_accum_fn;
bool m_done;
secure_vector<byte> m_io_buffer;
};