aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-18 13:05:49 +0000
committerlloyd <[email protected]>2008-09-18 13:05:49 +0000
commit643112a56d34c4f83def34fb3fc4fd9dbf2ffc1a (patch)
treeda947fd2b687c25b135f48083002fe0e59c54535 /doc/examples
parent522063d5274d1af02dcb83a1f3cd5b80c6c663e1 (diff)
Fix compilation with latest RNG API
Diffstat (limited to 'doc/examples')
-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;