aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-04-16 11:16:00 +0000
committerUlf Möller <ulf@openssl.org>1999-04-16 11:16:00 +0000
commit2fef6785c6448d19e545f071caec662468fe4a12 (patch)
tree6022d6c79330f0768eb673d24a47d3ab7fe383ae /crypto/rand
parent953937bdc624026eda5b36bcedc9dfacb9e85025 (diff)
downloadopenssl-2fef6785c6448d19e545f071caec662468fe4a12.tar.gz
Write random seed file in binary mode.
Submitted by: Richard Levitte <levitte@stacken.kth.se>
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/randfile.c2
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;