diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2003-01-20 21:27:17 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2003-01-20 21:27:17 +0000 |
commit | 9c0ed79401801d92ea3501cc035c89ca6e1a2c29 (patch) | |
tree | 5c33ca25a8fa242f35e7f7590ae1575a8e7d2b19 /usr.sbin | |
parent | cbdc39aa3ab26dcb1a6335d9ce1f6ed53f72542e (diff) |
fix broken lfsr implementation
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bind/lib/isc/lfsr.c | 2 |
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; |