- (djm) Don't reseed arc4random everytime it is used

This commit is contained in:
Damien Miller 2000-08-23 15:31:41 +10:00
parent 37e7f186a5
commit f3df052486
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
<kajiyama@grad.sccs.chukyo-u.ac.jp> <kajiyama@grad.sccs.chukyo-u.ac.jp>
- (djm) Pick up LOGIN_PROGRAM from environment or PATH if not set by headers - (djm) Pick up LOGIN_PROGRAM from environment or PATH if not set by headers
- (djm) Add local version to version.h - (djm) Add local version to version.h
- (djm) Don't reseed arc4random everytime it is used
- (djm) OpenBSD CVS updates: - (djm) OpenBSD CVS updates:
- deraadt@cvs.openbsd.org 2000/08/18 20:07:23 - deraadt@cvs.openbsd.org 2000/08/18 20:07:23
[ssh.c] [ssh.c]

View File

@ -60,5 +60,7 @@ void arc4random_stir(void)
RC4_set_key(&rc4, sizeof(rand_buf), rand_buf); RC4_set_key(&rc4, sizeof(rand_buf), rand_buf);
memset(rand_buf, 0, sizeof(rand_buf)); memset(rand_buf, 0, sizeof(rand_buf));
rc4_ready = 1;
} }
#endif /* !HAVE_ARC4RANDOM */ #endif /* !HAVE_ARC4RANDOM */