Commit 31166673 authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds

[PATCH] rol32 thinko

This thinko..  makes things a bit more arbitrary than we'd like.  I've
re-audited the other rotate conversions.
Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 85c9d14a
......@@ -556,7 +556,7 @@ static void __add_entropy_words(struct entropy_store *r, const __u32 *in,
add_ptr = r->add_ptr;
while (nwords--) {
w = rol32(input_rotate, next_w);
w = rol32(next_w, input_rotate);
if (nwords > 0)
next_w = *in++;
i = add_ptr = (add_ptr - 1) & wordmask;
......
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