summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/bsd-arc4random.c
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2002-05-08 15:57:18 -0700
committerTim Rice <tim@multitalents.net>2002-05-08 15:57:18 -0700
commit63cf84199df312830144db03f8defd88168335a0 (patch)
treeaf3b93882e58a5beeba73c6a03d9bcadb5ad7ed0 /openbsd-compat/bsd-arc4random.c
parent4bd2a1989073dcf353e8e4801029f9b6873158df (diff)
fix logic on when seed_rng() is called.
Report by Chris Maxwell <maxwell@cs.dal.ca>
Diffstat (limited to 'openbsd-compat/bsd-arc4random.c')
-rw-r--r--openbsd-compat/bsd-arc4random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-arc4random.c b/openbsd-compat/bsd-arc4random.c
index aaf9a7b0..ab4e1431 100644
--- a/openbsd-compat/bsd-arc4random.c
+++ b/openbsd-compat/bsd-arc4random.c
@@ -25,7 +25,7 @@
#include "includes.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
@@ -48,7 +48,7 @@ unsigned int arc4random(void)
static int first_time = 1;
if (rc4_ready <= 0) {
- if (!first_time)
+ if (first_time)
seed_rng();
first_time = 0;
arc4random_stir();