projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make the handling of output and input formats consistent
[openssl.git]
/
apps
/
rand.c
diff --git
a/apps/rand.c
b/apps/rand.c
index 432e784496d0d0d82586699366a5b9935122751a..a5aa5d94103256ce069f9a0266491eba15eb7941 100644
(file)
--- a/
apps/rand.c
+++ b/
apps/rand.c
@@
-134,7
+134,7
@@
int rand_main(int argc, char **argv)
BIO_printf(bio_err, "%ld semi-random bytes loaded\n",
app_RAND_load_files(inrand));
- out = bio_open_default(outfile,
"w
");
+ out = bio_open_default(outfile,
base64 ? "w" : "wb
");
if (out == NULL)
goto end;