Commit 78e5c8eb authored by Stefan Westerfeld's avatar Stefan Westerfeld

Zeros for random number generator can be static.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent c3c2e519
...@@ -108,7 +108,7 @@ void ...@@ -108,7 +108,7 @@ void
Random::refill_buffer() Random::refill_buffer()
{ {
const size_t block_size = 256; const size_t block_size = 256;
unsigned char zeros[block_size] = { 0, }; static unsigned char zeros[block_size] = { 0, };
unsigned char cipher_text[block_size]; unsigned char cipher_text[block_size];
gcry_error_t gcry_ret = gcry_cipher_encrypt (aes_ctr_cipher, cipher_text, block_size, zeros, block_size); gcry_error_t gcry_ret = gcry_cipher_encrypt (aes_ctr_cipher, cipher_text, block_size, zeros, block_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment