From 643112a56d34c4f83def34fb3fc4fd9dbf2ffc1a Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 18 Sep 2008 13:05:49 +0000 Subject: Fix compilation with latest RNG API --- doc/examples/rng_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/examples') 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 buf; -- cgit v1.2.3