diff options
author | lloyd <[email protected]> | 2008-05-25 21:15:23 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-05-25 21:15:23 +0000 |
commit | b69a04df1aff3e7a5d035f219453c7b261036e93 (patch) | |
tree | e7b5217bfecb125f0f6470489db942a97650bdeb /include | |
parent | 25609cd77358c4de86a9100dcd49b1d8ad07f19a (diff) |
Add RandomNumberGenerator::next_byte, which just returns a single byte
value from the RNG. (Would an adapter class be more appropriate?)
Diffstat (limited to 'include')
-rw-r--r-- | include/base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/base.h b/include/base.h index dfad3491b..efeb5e895 100644 --- a/include/base.h +++ b/include/base.h @@ -159,6 +159,8 @@ class BOTAN_DLL RandomNumberGenerator virtual bool is_seeded() const = 0; virtual void clear() throw() {}; + byte next_byte(); + void add_entropy(const byte[], u32bit); u32bit add_entropy(EntropySource&, bool = true); |