summaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-11-21 01:12:01 +0000
committerRoger Dingledine <arma@torproject.org>2005-11-21 01:12:01 +0000
commit8182eb69cd8ffa5dc2bdba7a52c6366193dba8e2 (patch)
tree6cbfc34fba9664da60063199ced4ba4e0ca90e08 /src/common/crypto.c
parenta48b722432649e812487fb876d8ba60c9913a87f (diff)
downloadtor-8182eb69cd8ffa5dc2bdba7a52c6366193dba8e2.tar.gz
tor-8182eb69cd8ffa5dc2bdba7a52c6366193dba8e2.zip
a smidgen more hint when we fail to seed the rng
svn:r5438
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 948e31a50d..4ebeb949e2 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -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));