removes superfluous seeding of the openssl prng

This commit is contained in:
Joe Bryan 2019-04-25 23:06:01 -07:00
parent edc142019e
commit 3900d1a0c2

View File

@ -729,21 +729,6 @@ main(c3_i argc,
SSL_library_init();
SSL_load_error_strings();
{
c3_i rad;
c3_y buf[4096];
// RAND_status, at least on OS X, never returns true.
// 4096 bytes should be enough entropy for anyone, right?
rad = open("/dev/urandom", O_RDONLY);
if ( 4096 != read(rad, &buf, 4096) ) {
perror("rand-seed");
exit(1);
}
RAND_seed(buf, 4096);
close(rad);
}
u3_daemon_commence();
}
return 0;