diff options
Diffstat (limited to 'include/rng.h')
-rw-r--r-- | include/rng.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/rng.h b/include/rng.h index 3a3b66251..fc75237cc 100644 --- a/include/rng.h +++ b/include/rng.h @@ -33,14 +33,16 @@ class BOTAN_DLL RandomNumberGenerator byte next_byte(); - void add_entropy(const byte[], u32bit); - u32bit add_entropy(EntropySource&, bool = true); + virtual void reseed() {}; virtual ~RandomNumberGenerator() {} - private: - virtual void add_randomness(const byte[], u32bit) = 0; }; +/************************************************* +* Create and seed an RNG * +*************************************************/ +RandomNumberGenerator* make_rng(); + } #endif |