diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-16 11:16:00 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-16 11:16:00 +0000 |
commit | 2fef6785c6448d19e545f071caec662468fe4a12 (patch) | |
tree | 6022d6c79330f0768eb673d24a47d3ab7fe383ae /crypto | |
parent | 953937bdc624026eda5b36bcedc9dfacb9e85025 (diff) | |
download | openssl-2fef6785c6448d19e545f071caec662468fe4a12.tar.gz |
Write random seed file in binary mode.
Submitted by: Richard Levitte <levitte@stacken.kth.se>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rand/randfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index 3ae95f9012..c8744318f6 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -116,7 +116,7 @@ const char *file; FILE *out; int n; - out=fopen(file,"w"); + out=fopen(file,"wb"); if (out == NULL) goto err; chmod(file,0600); n=RAND_DATA; |