* [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
*
*/
+#define NON_MAIN
#include "apps.h"
+#undef NON_MAIN
#include <openssl/bio.h>
#include <openssl/rand.h>
char *p,*n;
int last;
long tot=0;
-
+ int egd;
+
for (;;)
{
last=0;
name=p+1;
if (*n == '\0') break;
- tot+=RAND_egd(n);
- tot+=RAND_load_file(n,1024L*1024L);
+ egd=RAND_egd(n);
+ if (egd > 0)
+ tot+=egd;
+ else
+ tot+=RAND_load_file(n,-1);
if (last) break;
}
if (tot > 512)