瀏覽代碼

a smidgen more hint when we fail to seed the rng

svn:r5438
Roger Dingledine 18 年之前
父節點
當前提交
8182eb69cd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/crypto.c

+ 1 - 1
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));