]> andersk Git - openssh.git/blobdiff - openbsd-compat/bsd-arc4random.c
- markus@cvs.openbsd.org 2002/06/10 22:28:41
[openssh.git] / openbsd-compat / bsd-arc4random.c
index 9585fc788bd2f4d588dbc4e781411a30a8109d98..25a559be006bf2d55b800b5783926b0f2895e941 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 #include "includes.h"
+#include "log.h"
 
 RCSID("$Id$");
 
@@ -30,6 +31,7 @@ RCSID("$Id$");
 
 #include <openssl/rand.h>
 #include <openssl/rc4.h>
+#include <openssl/err.h>
 
 /* Size of key to use */
 #define SEED_SIZE 20
@@ -46,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.070277 seconds and 4 git commands to generate.