Write random seed file in binary mode.
authorUlf Möller <ulf@openssl.org>
Fri, 16 Apr 1999 11:16:00 +0000 (11:16 +0000)
committerUlf Möller <ulf@openssl.org>
Fri, 16 Apr 1999 11:16:00 +0000 (11:16 +0000)
Submitted by: Richard Levitte <levitte@stacken.kth.se>

crypto/rand/randfile.c

index 3ae95f9012f1f3acb51a3787517a93d3815d1acb..c8744318f6746458b55b3ab77a2687f2c2a153fd 100644 (file)
@@ -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;