From 2fef6785c6448d19e545f071caec662468fe4a12 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulf=20M=C3=B6ller?= Date: Fri, 16 Apr 1999 11:16:00 +0000 Subject: [PATCH] Write random seed file in binary mode. Submitted by: Richard Levitte --- crypto/rand/randfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1