summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-08-23 15:31:41 +1000
committerDamien Miller <djm@mindrot.org>2000-08-23 15:31:41 +1000
commitf3df05248675a2be76c72a0cd92f3b8f8f26af7b (patch)
tree0952e6ba12f26ee41981262b03ede21e43321192
parent37e7f186a51198d355af8bc806ebd2d2f7d99030 (diff)
- (djm) Don't reseed arc4random everytime it is used
-rw-r--r--ChangeLog1
-rw-r--r--bsd-arc4random.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b12f4bde..d2440bab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
<kajiyama@grad.sccs.chukyo-u.ac.jp>
- (djm) Pick up LOGIN_PROGRAM from environment or PATH if not set by headers
- (djm) Add local version to version.h
+ - (djm) Don't reseed arc4random everytime it is used
- (djm) OpenBSD CVS updates:
- deraadt@cvs.openbsd.org 2000/08/18 20:07:23
[ssh.c]
diff --git a/bsd-arc4random.c b/bsd-arc4random.c
index d01a515b..4c2f0854 100644
--- a/bsd-arc4random.c
+++ b/bsd-arc4random.c
@@ -60,5 +60,7 @@ void arc4random_stir(void)
RC4_set_key(&rc4, sizeof(rand_buf), rand_buf);
memset(rand_buf, 0, sizeof(rand_buf));
+
+ rc4_ready = 1;
}
#endif /* !HAVE_ARC4RANDOM */