Switch for turning on the predictable "random" number generator.

This commit is contained in:
Ulf Möller
2000-02-28 20:19:39 +00:00
parent c9e1fe33be
commit e64dceab74
2 changed files with 20 additions and 7 deletions

View File

@@ -97,7 +97,7 @@ int RAND_egd(const char *path)
buf[1] = 255;
write(fd, buf, 2);
if (read(fd, buf, 1) != 1) goto err;
if (buf[0] == 0) goto err;
if (buf[0] == 0) goto err;
num = read(fd, buf, 255);
if (num < 1) goto err;
RAND_seed(buf, num);