Print random device instead of /dev/urandom

w32-compat
Christopher Wellons 2017-07-24 12:25:01 -04:00
parent 727e89a81f
commit 2790ce019f
1 changed files with 1 additions and 1 deletions

View File

@ -617,7 +617,7 @@ secure_entropy(void *buf, size_t len)
{
FILE *r = fopen(global_random_device, "rb");
if (!r)
fatal("failed to open /dev/urandom");
fatal("failed to open %s", global_random_device);
if (!fread(buf, len, 1, r))
fatal("failed to gather entropy");
fclose(r);