summaryrefslogtreecommitdiff
path: root/sys/dev/rnd.c
diff options
context:
space:
mode:
authorflipk <flipk@cvs.openbsd.org>1997-06-22 05:05:01 +0000
committerflipk <flipk@cvs.openbsd.org>1997-06-22 05:05:01 +0000
commit5717cfbe77f39162809aea43c7fb214d7a229f3b (patch)
tree28ea3dafdd3bcc0513c6c264cfd30ddcb065d33d /sys/dev/rnd.c
parent51aaa5c2dfb218972a46206b44af4f00657ce50c (diff)
now where did that patch go?
Diffstat (limited to 'sys/dev/rnd.c')
-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 6f870732409..c95c328e928 100644
--- a/sys/dev/rnd.c
+++ b/sys/dev/rnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd.c,v 1.28 1997/06/22 04:58:05 flipk Exp $ */
+/* $OpenBSD: rnd.c,v 1.29 1997/06/22 05:05:00 flipk Exp $ */
/*
* random.c -- A strong random number generator
@@ -447,7 +447,7 @@ randomattach(void)
bzero(&event_space, sizeof(event_space));
event_free = event_space;
- for (rep = event_space; rep < &event_space[QEVLEN]; rep++)
+ for (rep = event_space; rep < &event_space[QEVLEN-1]; rep++)
rep->re_next = rep + 1;
for (i = 0; i < 256; i++)
arc4_state.s[i] = i;