a smidgen more hint when we fail to seed the rng

svn:r5438
This commit is contained in:
Roger Dingledine 2005-11-21 01:12:01 +00:00
parent a48b722432
commit 8182eb69cd

View File

@ -1667,7 +1667,7 @@ crypto_seed_rng(void)
n = read_all(fd, buf, sizeof(buf), 0); n = read_all(fd, buf, sizeof(buf), 0);
close(fd); close(fd);
if (n != sizeof(buf)) { if (n != sizeof(buf)) {
warn(LD_CRYPTO, "Error reading from entropy source"); warn(LD_CRYPTO, "Error reading from entropy source (read only %d bytes).", n);
return -1; return -1;
} }
RAND_seed(buf, sizeof(buf)); RAND_seed(buf, sizeof(buf));