From cf884b7cc1012848ea9cc78a09aba12a2c226096 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 12 Oct 2008 16:37:34 +0000 Subject: Add name() virtual function in RandomNumberGenerator base class (had been there, was lost) --- src/core/rng.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/rng.h') diff --git a/src/core/rng.h b/src/core/rng.h index f8b9a7f62..d313ad028 100644 --- a/src/core/rng.h +++ b/src/core/rng.h @@ -32,6 +32,7 @@ class BOTAN_DLL RandomNumberGenerator virtual void randomize(byte[], u32bit) = 0; virtual bool is_seeded() const = 0; virtual void clear() throw() = 0; + virtual std::string name() const = 0; byte next_byte(); @@ -55,6 +56,7 @@ class BOTAN_DLL Null_RNG : public RandomNumberGenerator public: void randomize(byte[], u32bit) { throw PRNG_Unseeded("Null_RNG"); } void clear() throw() {}; + std::string name() const { return "Null_RNG"; } bool is_seeded() const { return false; } void add_entropy(const byte[], u32bit) {} -- cgit v1.2.3