diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-09-17 01:45:26 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-09-17 01:45:26 +0000 |
commit | c1a074e0a94697b62de321838273385bd92d8636 (patch) | |
tree | 92a1531e933927dd5df5bbda3d060b97213a9755 /randpool.cpp | |
parent | b8367771f83d82888e145a5e844cb494de59fb32 (diff) | |
download | cryptopp-c1a074e0a94697b62de321838273385bd92d8636.tar.gz |
initialize memory to remove Valgrind warning (Zooko, Jeffrey Walton)
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@477 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'randpool.cpp')
-rw-r--r-- | randpool.cpp | 2 |
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) |