* [PATCH] rol32 thinko
@ 2005-01-25 20:42 Matt Mackall
0 siblings, 0 replies; only message in thread
From: Matt Mackall @ 2005-01-25 20:42 UTC (permalink / raw)
To: Andrew Morton, Theodore Y. Ts'o, linux-kernel
This thinko.. makes things a bit more arbitrary than we'd like. I've
re-audited the other rotate conversions.
Signed-off-by: Matt Mackall <mpm@selenic.com>
Index: rc2mm1/drivers/char/random.c
===================================================================
--- rc2mm1.orig/drivers/char/random.c 2005-01-25 12:26:13.000000000 -0800
+++ rc2mm1/drivers/char/random.c 2005-01-25 12:27:00.000000000 -0800
@@ -474,7 +474,7 @@
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;
--
Mathematics is the supreme nostalgia of our time.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-25 20:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-25 20:42 [PATCH] rol32 thinko Matt Mackall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).