fix logic on when seed_rng() is called.
Report by Chris Maxwell <maxwell@cs.dal.ca>
This commit is contained in:
parent
4bd2a19890
commit
63cf84199d
|
@ -1,3 +1,7 @@
|
||||||
|
20020507
|
||||||
|
- (tim) [openbsd-compat/bsd-arc4random.c] fix logic on when seed_rng() is
|
||||||
|
called. Report by Chris Maxwell <maxwell@cs.dal.ca>
|
||||||
|
|
||||||
20020507
|
20020507
|
||||||
- (tim) [configure.ac openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h]
|
- (tim) [configure.ac openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h]
|
||||||
Add truncate() emulation to address Bug 208
|
Add truncate() emulation to address Bug 208
|
||||||
|
@ -539,4 +543,4 @@
|
||||||
- (stevesk) entropy.c: typo in debug message
|
- (stevesk) entropy.c: typo in debug message
|
||||||
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2096 2002/05/08 02:51:31 tim Exp $
|
$Id: ChangeLog,v 1.2097 2002/05/08 22:57:18 tim Exp $
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
RCSID("$Id: bsd-arc4random.c,v 1.4 2001/03/18 23:00:53 djm Exp $");
|
RCSID("$Id: bsd-arc4random.c,v 1.5 2002/05/08 22:57:18 tim Exp $");
|
||||||
|
|
||||||
#ifndef HAVE_ARC4RANDOM
|
#ifndef HAVE_ARC4RANDOM
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ unsigned int arc4random(void)
|
||||||
static int first_time = 1;
|
static int first_time = 1;
|
||||||
|
|
||||||
if (rc4_ready <= 0) {
|
if (rc4_ready <= 0) {
|
||||||
if (!first_time)
|
if (first_time)
|
||||||
seed_rng();
|
seed_rng();
|
||||||
first_time = 0;
|
first_time = 0;
|
||||||
arc4random_stir();
|
arc4random_stir();
|
||||||
|
|
Loading…
Reference in New Issue