New functions and option to use NEW in certificate requests.
[openssl.git] / apps / app_rand.c
index 2543a6405721ef5f2fd74864e5c4342f228c0e00..b94c85323a4ca7780cd5223d3173d9daa4c6042b 100644 (file)
  *
  */
 
+#include "apps.h"
 #include <openssl/bio.h>
 #include <openssl/rand.h>
 
-#include "apps.h"
 
 static int seeded = 0;
 
@@ -130,7 +130,7 @@ int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn)
 
        if (file == NULL)
                file = RAND_file_name(buffer, sizeof buffer);
-       if (file == NULL || !RAND_load_file(file, 1024L*1024L))
+       if (file == NULL || !RAND_load_file(file, -1))
                {
                if (!dont_warn)
                        {
@@ -180,7 +180,7 @@ int app_RAND_write_file(const char *file, BIO *bio_e)
        if (!seeded)
                /* If we did not manage to read the seed file,
                 * we should not write a low-entropy seed file back --
-                * it would supress a crucial warning the next time
+                * it would suppress a crucial warning the next time
                 * we want to use it. */
                return 0;