]> andersk Git - openssh.git/commitdiff
fix logic on when seed_rng() is called.
authortim <tim>
Wed, 8 May 2002 22:57:18 +0000 (22:57 +0000)
committertim <tim>
Wed, 8 May 2002 22:57:18 +0000 (22:57 +0000)
Report by Chris Maxwell <maxwell@cs.dal.ca>

ChangeLog
openbsd-compat/bsd-arc4random.c

index 8f4aae64f6369305b0176ef1538b35ce753011ee..1f71271baf2966dfdb6b138884a7679fd942de97 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
  - (tim) [configure.ac openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h]
    Add truncate() emulation to address Bug 208
index 4fcfc6ec7d2a7330ba143c173704acd030748f86..25a559be006bf2d55b800b5783926b0f2895e941 100644 (file)
@@ -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();
This page took 0.144034 seconds and 5 git commands to generate.