summaryrefslogtreecommitdiffstats
path: root/src/onetimebluh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/onetimebluh.c')
-rw-r--r--src/onetimebluh.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/onetimebluh.c b/src/onetimebluh.c
index dac7c44..4ceee04 100644
--- a/src/onetimebluh.c
+++ b/src/onetimebluh.c
@@ -251,14 +251,15 @@ void keyrand (int64_t nb, char* outp) {
nb = 1048576;
}
- unsigned char* key = malloc (nb);
- RAND_bytes (key, nb);
-
if (outp == NULL) {
outp = defoutp;
printf ("No output name specified... using default value: default.key \n");
}
+ printf ("Generating pad...\n");
+ unsigned char* key = malloc (nb);
+ RAND_bytes (key, nb);
+
FILE* file = fopen (outp, "w");
fwrite (key, sizeof(char), nb, file);
fclose (file);