From f3df05248675a2be76c72a0cd92f3b8f8f26af7b Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 23 Aug 2000 15:31:41 +1000 Subject: [PATCH] - (djm) Don't reseed arc4random everytime it is used --- ChangeLog | 1 + bsd-arc4random.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index b12f4bde6..d2440babc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ - (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 d01a515b4..4c2f0854f 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 */