aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_rand.c
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2001-02-03 10:59:13 +0000
committerLutz Jänicke <jaenicke@openssl.org>2001-02-03 10:59:13 +0000
commit08f3f07212954e711fd91d60b7a4417b8c42d0f8 (patch)
treeb81c3ffef34e40476040f22e372aac10e0cef5f8 /apps/app_rand.c
parent8cbceba6106feb1110e7df6fbce9ab7ed2503b60 (diff)
downloadopenssl-08f3f07212954e711fd91d60b7a4417b8c42d0f8.tar.gz
If the source has already been succesfully queried, do not try to open it
again as file.
Diffstat (limited to 'apps/app_rand.c')
-rw-r--r--apps/app_rand.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_rand.c b/apps/app_rand.c
index 2126fd5aa1..9d6d5fbf6f 100644
--- a/apps/app_rand.c
+++ b/apps/app_rand.c
@@ -180,8 +180,10 @@ long app_RAND_load_files(char *name)
if (*n == '\0') break;
egd=RAND_egd(n);
- if (egd > 0) tot+=egd;
- tot+=RAND_load_file(n,-1);
+ if (egd > 0)
+ tot+=egd;
+ else
+ tot+=RAND_load_file(n,-1);
if (last) break;
}
if (tot > 512)