summaryrefslogtreecommitdiffstats
path: root/apps/rand.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-05-29 08:07:10 +0200
committerRichard Levitte <levitte@openssl.org>2015-05-29 12:41:50 +0200
commit296f54ee211edbf8d21479091b4c20a9ee7698ad (patch)
tree4f746de806c85723368d65c4ab36d8e34974b214 /apps/rand.c
parent21425195009e4daf6971453f8a0be08375ae9eec (diff)
Restore module loading
The module loading feature got broken a while ago, so restore it, but have it a bit more explicit this time around. Reviewed-by: Stephen Henson <steve@openssl.org>
Diffstat (limited to 'apps/rand.c')
-rw-r--r--apps/rand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/rand.c b/apps/rand.c
index 498e7dae70..432e784496 100644
--- a/apps/rand.c
+++ b/apps/rand.c
@@ -126,6 +126,9 @@ int rand_main(int argc, char **argv)
if (sscanf(argv[0], "%d", &num) != 1 || num < 0)
goto opthelp;
+ if (!app_load_modules(NULL))
+ goto end;
+
app_RAND_load_file(NULL, (inrand != NULL));
if (inrand != NULL)
BIO_printf(bio_err, "%ld semi-random bytes loaded\n",