chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d5d3057
)
rand/rand.c: Fix incorrect assertion.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 29 May 2015 13:41:13 +0000
(14:41 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 29 May 2015 17:54:59 +0000
(18:54 +0100)
rand/rand.c
patch
|
blob
|
blame
|
history
diff --git
a/rand/rand.c
b/rand/rand.c
index ab00e8934edcdb437496a09b93d54591366f3d51..e0bebbfac9126ba59ceffb98cbf146ba297ca0e9 100644
(file)
--- a/
rand/rand.c
+++ b/
rand/rand.c
@@
-327,7
+327,7
@@
void rand_stretch(rand_pool *r)
/* --- Now mangle the buffer based on the hash --- */
/* --- 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);
CIPHER_INIT(&cc, h, CIPHER_KEYSZ, 0);
CIPHER_ENCRYPT(&cc, r->buf, r->buf, RAND_BUFSZ);
BURN(cc);