summaryrefslogtreecommitdiff
path: root/randpool.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2009-09-17 01:45:26 +0000
committerweidai <weidai11@users.noreply.github.com>2009-09-17 01:45:26 +0000
commit01d0286194bf083deb8bf4f3fd2f9f0c33db1767 (patch)
tree92a1531e933927dd5df5bbda3d060b97213a9755 /randpool.cpp
parent0c8667344c38153bd091ded7924d360d56288fa5 (diff)
downloadcryptopp-git-01d0286194bf083deb8bf4f3fd2f9f0c33db1767.tar.gz
initialize memory to remove Valgrind warning (Zooko, Jeffrey Walton)
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 11ece6d4..a063c899 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)