Skip to content
Snippets Groups Projects
Commit 8182eb69 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

a smidgen more hint when we fail to seed the rng

svn:r5438
parent a48b7224
Branches maint-0.2.7-redux
No related tags found
No related merge requests found
......@@ -1667,7 +1667,7 @@ crypto_seed_rng(void)
n = read_all(fd, buf, sizeof(buf), 0);
close(fd);
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;
}
RAND_seed(buf, sizeof(buf));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment