rand/rand.c: Fix incorrect assertion.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 29 May 2015 13:41:13 +0000 (14:41 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 29 May 2015 17:54:59 +0000 (18:54 +0100)
rand/rand.c

index ab00e89..e0bebbf 100644 (file)
@@ -327,7 +327,7 @@ void rand_stretch(rand_pool *r)
 
   /* --- Now mangle the buffer based on the hash --- */
 
-  assert(CIPHER_KEYSZ < HASH_SZ);
+  assert(CIPHER_KEYSZ <= HASH_SZ);
   CIPHER_INIT(&cc, h, CIPHER_KEYSZ, 0);
   CIPHER_ENCRYPT(&cc, r->buf, r->buf, RAND_BUFSZ);
   BURN(cc);