diff options
-rw-r--r-- | cipher/random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/random.c b/cipher/random.c index 7549517b3..be2f51a50 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -365,7 +365,7 @@ mix_pool(byte *pool) memcpy(hashbuf, pend - DIGESTLEN, DIGESTLEN ); memcpy(hashbuf+DIGESTLEN, pool, BLOCKLEN-DIGESTLEN); rmd160_mixblock( &md, hashbuf); - memcpy(pool, hashbuf, 20 ); + memcpy(pool, hashbuf, DIGESTLEN); p = pool; for( n=1; n < POOLBLOCKS; n++ ) { @@ -384,7 +384,7 @@ mix_pool(byte *pool) } rmd160_mixblock( &md, hashbuf); - memcpy(p, hashbuf, 20 ); + memcpy(p, hashbuf, DIGESTLEN); } burn_stack (384); /* for the rmd160_mixblock() */ } |