summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-01-17 01:59:51 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-01-17 01:59:51 +0000
commit79b40b4a74e64d8a3f7a6e3ea3d51b9d16b71a40 (patch)
treee2b80e5cf48a48cbed35f09b30c596c2c9623ad8 /sys
parentc7a7ab4fef7e21029386d42a5cabbbbb7a7522e2 (diff)
advance through buffer, leftovers from singular version; from Henric Jungheim <henric@aimnet.com>
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/rnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c
index fa0537ebb73..8ab58abbafd 100644
--- a/sys/dev/rnd.c
+++ b/sys/dev/rnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd.c,v 1.45 2000/10/22 01:08:52 mickey Exp $ */
+/* $OpenBSD: rnd.c,v 1.46 2001/01/17 01:59:50 mickey Exp $ */
/*
* random.c -- A strong random number generator
@@ -612,7 +612,7 @@ add_entropy_words(buf, n)
int new_rotate;
u_int32_t w;
- while (n--) {
+ for (; n--; buf++) {
w = roll(*buf, random_state.input_rotate);
i = random_state.add_ptr =
(random_state.add_ptr - 1) & (POOLWORDS - 1);