diff options
author | lloyd <[email protected]> | 2008-06-28 00:54:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-28 00:54:38 +0000 |
commit | adfc19b00668f641c07c89bd08452bd3099e99d2 (patch) | |
tree | 70c752f69965e68d01e499b8a6993c5312052595 /include/rng.h | |
parent | d9b7e74a4f2660d047cdf92a2af0ad99b319bcc1 (diff) |
Change make_rng to be a static member of RandomNumberGenerator
Diffstat (limited to 'include/rng.h')
-rw-r--r-- | include/rng.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/rng.h b/include/rng.h index fc75237cc..78edc1554 100644 --- a/include/rng.h +++ b/include/rng.h @@ -27,6 +27,8 @@ class BOTAN_DLL EntropySource class BOTAN_DLL RandomNumberGenerator { public: + static RandomNumberGenerator* make_rng(); + virtual void randomize(byte[], u32bit) = 0; virtual bool is_seeded() const = 0; virtual void clear() throw() {}; @@ -38,11 +40,6 @@ class BOTAN_DLL RandomNumberGenerator virtual ~RandomNumberGenerator() {} }; -/************************************************* -* Create and seed an RNG * -*************************************************/ -RandomNumberGenerator* make_rng(); - } #endif |