summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2003-01-20 21:27:17 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2003-01-20 21:27:17 +0000
commit9c0ed79401801d92ea3501cc035c89ca6e1a2c29 (patch)
tree5c33ca25a8fa242f35e7f7590ae1575a8e7d2b19 /usr.sbin
parentcbdc39aa3ab26dcb1a6335d9ce1f6ed53f72542e (diff)
fix broken lfsr implementation
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bind/lib/isc/lfsr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bind/lib/isc/lfsr.c b/usr.sbin/bind/lib/isc/lfsr.c
index 35149431b21..f68c428d44b 100644
--- a/usr.sbin/bind/lib/isc/lfsr.c
+++ b/usr.sbin/bind/lib/isc/lfsr.c
@@ -74,7 +74,7 @@ lfsr_generate(isc_lfsr_t *lfsr)
}
if (lfsr->state & 0x01) {
- lfsr->state = ((lfsr->state ^ lfsr->tap) >> 1) | highbit;
+ lfsr->state = (lfsr->state >> 1) ^ lfsr->tap;
return (1);
} else {
lfsr->state >>= 1;