aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/random.c')
-rw-r--r--cipher/random.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cipher/random.c b/cipher/random.c
index faf664ac1..8b750a7ff 100644
--- a/cipher/random.c
+++ b/cipher/random.c
@@ -205,7 +205,7 @@ burn_stack (int bytes)
{
char buf[128];
- memset (buf, 0, sizeof buf);
+ wipememory(buf,sizeof buf);
bytes -= sizeof buf;
if (bytes > 0)
burn_stack (bytes);
@@ -564,7 +564,7 @@ read_pool( byte *buffer, size_t length, int level )
if( pool_balance < 0 )
pool_balance = 0;
/* and clear the keypool */
- memset( keypool, 0, POOLSIZE );
+ wipememory(keypool, POOLSIZE);
}
}
@@ -673,7 +673,7 @@ fast_random_poll()
getrusage( RUSAGE_SELF, &buf );
add_randomness( &buf, sizeof buf, 1 );
- memset( &buf, 0, sizeof buf );
+ wipememory( &buf, sizeof buf );
}
#endif
#endif