From: Ulf Möller Date: Fri, 16 Apr 1999 11:16:00 +0000 (+0000) Subject: Write random seed file in binary mode. X-Git-Tag: OpenSSL_0_9_3beta1~327 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2fef6785c6448d19e545f071caec662468fe4a12;p=oweals%2Fopenssl.git Write random seed file in binary mode. Submitted by: Richard Levitte --- 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;