aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/rng_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/rng_test.cpp')
-rw-r--r--doc/examples/rng_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/rng_test.cpp b/doc/examples/rng_test.cpp
index 0a245ca9e..0cf7bd7fc 100644
--- a/doc/examples/rng_test.cpp
+++ b/doc/examples/rng_test.cpp
@@ -59,11 +59,13 @@ class Fixed_Output_RNG : public RandomNumberGenerator
void clear() throw() {}
- void add_randomness(const byte in[], u32bit len) throw()
+ void add_entropy(const byte in[], u32bit len)
{
buf.insert(buf.end(), in, in + len);
}
+ void add_entropy_source(EntropySource* es) { delete es; }
+
Fixed_Output_RNG() {}
private:
std::deque<byte> buf;