Write random seed file in binary mode.
Submitted by: Richard Levitte <levitte@stacken.kth.se>
This commit is contained in:
parent
953937bdc6
commit
2fef6785c6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user