add comment and RAND_load_file() change as in main branch.

This commit is contained in:
Ulf Möller 2001-02-08 17:50:55 +00:00
parent 6bdb723259
commit 452b34a770

View File

@ -83,6 +83,9 @@
/* #define RFILE ".rnd" - defined in ../../e_os.h */ /* #define RFILE ".rnd" - defined in ../../e_os.h */
/* Note that these functions are intended for seed files only.
* Entropy devices and EGD sockets are handled in rand_unix.c */
int RAND_load_file(const char *file, long bytes) int RAND_load_file(const char *file, long bytes)
{ {
/* If bytes >= 0, read up to 'bytes' bytes. /* If bytes >= 0, read up to 'bytes' bytes.
@ -117,7 +120,7 @@ int RAND_load_file(const char *file, long bytes)
if (bytes > 0) if (bytes > 0)
{ {
bytes-=n; bytes-=n;
if (bytes == 0) break; if (bytes <= 0) break;
} }
} }
fclose(in); fclose(in);