[PATCH 2/4] urngd: Remove some unused #defines

nwfilardo at gmail.com nwfilardo at gmail.com
Mon Jul 13 05:08:16 EDT 2020


From: Nathaniel Wesley Filardo <nwfilardo at gmail.com>

These look like there had been plans to stay asleep if there was
"sufficient" entropy in the system, but the code does not do so.

Signed-off-by: Nathaniel Wesley Filardo <nwfilardo at gmail.com>
---
 urngd.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/urngd.c b/urngd.c
index f782a9a..31181f0 100644
--- a/urngd.c
+++ b/urngd.c
@@ -50,10 +50,8 @@
 #include "jitterentropy.h"
 
 #define ENTROPYBYTES 32
-#define ENTROPYTHRESH 1024
 #define OVERSAMPLINGFACTOR 2
 #define DEV_RANDOM "/dev/random"
-#define ENTROPYAVAIL "/proc/sys/kernel/random/entropy_avail"
 #define ENTROPYPOOLBYTES \
 		(ENTROPYBYTES * OVERSAMPLINGFACTOR * sizeof(char))
 
-- 
2.27.0




More information about the openwrt-devel mailing list