diff options
-rw-r--r-- | src/core/rng.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) {} |