[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] a smidgen more hint when we fail to seed the rng
Update of /home2/or/cvsroot/tor/src/common
In directory moria:/home/arma/work/onion/cvs/tor/src/common
Modified Files:
crypto.c
Log Message:
a smidgen more hint when we fail to seed the rng
Index: crypto.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/crypto.c,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -d -r1.176 -r1.177
--- crypto.c 16 Nov 2005 05:22:44 -0000 1.176
+++ crypto.c 21 Nov 2005 01:12:01 -0000 1.177
@@ -1667,7 +1667,7 @@
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));