aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-12 16:37:34 +0000
committerlloyd <[email protected]>2008-10-12 16:37:34 +0000
commitcf884b7cc1012848ea9cc78a09aba12a2c226096 (patch)
tree9b41c0deeecb927e509d4e8cfcdca939a7d16a19
parent88f624e9ac8511abebbcddaac74789683ff4438d (diff)
Add name() virtual function in RandomNumberGenerator base class (had been there, was lost)
-rw-r--r--src/core/rng.h2
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) {}