initialize memory to remove Valgrind warning (Zooko, Jeffrey Walton)
parent
0c8667344c
commit
01d0286194
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue