summaryrefslogtreecommitdiff
path: root/randpool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'randpool.cpp')
-rw-r--r--randpool.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/randpool.cpp b/randpool.cpp
index 11ece6d..a063c89 100644
--- a/randpool.cpp
+++ b/randpool.cpp
@@ -19,6 +19,8 @@ NAMESPACE_BEGIN(CryptoPP)
RandomPool::RandomPool()
: m_pCipher(new AES::Encryption), m_keySet(false)
{
+ memset(m_key, 0, m_key.SizeInBytes());
+ memset(m_seed, 0, m_seed.SizeInBytes());
}
void RandomPool::IncorporateEntropy(const byte *input, size_t length)