diff options
Diffstat (limited to 'src/rng/rng.h')
-rw-r--r-- | src/rng/rng.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rng/rng.h b/src/rng/rng.h index c53d8e22d..e0c361fd5 100644 --- a/src/rng/rng.h +++ b/src/rng/rng.h @@ -74,6 +74,9 @@ class BOTAN_DLL RandomNumberGenerator */ virtual void add_entropy(const byte in[], u32bit length) = 0; + void add_entropy_vec(const MemoryRegion<byte>& vec) + { add_entropy(&vec[0], vec.size()); } + RandomNumberGenerator() {} virtual ~RandomNumberGenerator() {} private: |