From 8182eb69cd8ffa5dc2bdba7a52c6366193dba8e2 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 21 Nov 2005 01:12:01 +0000 Subject: [PATCH] a smidgen more hint when we fail to seed the rng svn:r5438 --- src/common/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));