siglen is unsigned, so comparing it to less than 0 is silly, and
[openssl.git] / apps / app_rand.c
index 26289e43495d79e3f92ff9a99ce3f67e5a3917c7..1146f9f7f38ad986a38296cc68567569a41dafe6 100644 (file)
@@ -56,7 +56,7 @@
  * [including the GNU Public Licence.]
  */
 /* ====================================================================
- * Copyright (c) 1998-1999 The OpenSSL Project.  All rights reserved.
+ * Copyright (c) 1998-2000 The OpenSSL Project.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -176,9 +176,9 @@ long app_RAND_load_files(char *name)
                name=p+1;
                if (*n == '\0') break;
 
-        egd=RAND_egd(n);
+               egd=RAND_egd(n);
                if (egd > 0) tot+=egd;
-               tot+=RAND_load_file(n,1024L*1024L);
+               tot+=RAND_load_file(n,-1);
                if (last) break;
                }
        if (tot > 512)