Write random seed file in binary mode.

Submitted by: Richard Levitte <levitte@stacken.kth.se>
This commit is contained in:
Ulf Möller 1999-04-16 11:16:00 +00:00
parent 953937bdc6
commit 2fef6785c6

View 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;