diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index 43053b19b..7468eaa57 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -129,7 +129,11 @@ int RAND_load_file(const char *file, long bytes) i=fread(buf,1,n,in); if (i <= 0) break; /* even if n != i, use the full array */ +#ifdef PURIFY + RAND_add(buf,i,(double)i); +#else RAND_add(buf,n,(double)i); +#endif ret+=i; if (bytes > 0) {