initialize memory to remove Valgrind warning (Zooko, Jeffrey Walton)

import/raw
weidai 2009-09-17 01:45:26 +00:00
parent c925be0ec1
commit 62eac9fee1
1 changed files with 2 additions and 0 deletions

View File

@ -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)