aboutsummaryrefslogtreecommitdiffstats
path: root/include/base.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-25 21:15:23 +0000
committerlloyd <[email protected]>2008-05-25 21:15:23 +0000
commitb69a04df1aff3e7a5d035f219453c7b261036e93 (patch)
treee7b5217bfecb125f0f6470489db942a97650bdeb /include/base.h
parent25609cd77358c4de86a9100dcd49b1d8ad07f19a (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/base.h')
-rw-r--r--include/base.h2
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);