diff options
author | Bodo Möller <bodo@openssl.org> | 2000-01-24 10:03:24 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-01-24 10:03:24 +0000 |
commit | 05ccd698b986131a217f85281977e767673b27d1 (patch) | |
tree | e1885e54a8cff160871b0a2a95e94437da6daccb /apps/app_rand.c | |
parent | f13b93d3b46d5fa0a2b0c4ec9854a3962a73d198 (diff) | |
download | openssl-new-05ccd698b986131a217f85281977e767673b27d1.tar.gz |
RAND_load_file(..., -1) now means "read the complete file";
this is what we now use to read $RANDFILE / $HOME/.rnd.
(Previously, after 'cat'ting lots of stuff into .rnd
only the first MB would be looked at.)
Bugfix for apps/enc.c: Continue if RAND_pseudo_bytes returns 0
(only -1 is an error).
Diffstat (limited to 'apps/app_rand.c')
-rw-r--r-- | apps/app_rand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_rand.c b/apps/app_rand.c index 9e29e54954..6384dd0be5 100644 --- a/apps/app_rand.c +++ b/apps/app_rand.c @@ -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) { |