summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-08-30 14:06:35 +1100
committerDamien Miller <djm@mindrot.org>2000-08-30 14:06:35 +1100
commit250ee8b3ef36a9116360c088c7a73bc77bf81afd (patch)
tree8e0a4d857ef297dd52da7601e2a3c27dabd8035b
parent77aba9d02490a7cac75c15d44ef6f9a9a79d3fbf (diff)
- (djm) Fix doh in bsd-arc4random.c
-rw-r--r--ChangeLog1
-rw-r--r--bsd-arc4random.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fae5c7c4..e9cde655 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
- (djm) Fix printing of $DISPLAY hack if set by system type. Report from
Kevin Steves <stevesk@sweden.hp.com>
- (djm) NeXT patch from Ben Lindstrom <mouring@pconline.com>
+ - (djm) Fix doh in bsd-arc4random.c
20000829
- (djm) Fix ^C ignored issue on Solaris. Diagnosis from Gert
diff --git a/bsd-arc4random.c b/bsd-arc4random.c
index a1f51546..86d15824 100644
--- a/bsd-arc4random.c
+++ b/bsd-arc4random.c
@@ -37,7 +37,7 @@
#define SEED_SIZE 20
/* Number of bytes to reseed after */
-#define REKEY_BYTES (1 >> 18)
+#define REKEY_BYTES (1 << 18)
static int rc4_ready = 0;
static RC4_KEY rc4;