From bd953284f4da96737f9c8727916ca360ea23b27b Mon Sep 17 00:00:00 2001 From: Jirka Hladky Date: Mon, 30 Sep 2024 13:49:42 +0200 Subject: add entropy every 60 seconds unconditionally --- src/haveged.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/haveged.c b/src/haveged.c index f668968..f9fe863 100644 --- a/src/haveged.c +++ b/src/haveged.c @@ -647,8 +647,8 @@ static void run_daemon( /* RETURN: nothing */ error_exit("Stopping due to signal %d\n", params->exit_code - 128); t[1] = time(NULL); - if (t[1] - t[0] > 600) { - /* add entropy on daemon start and then every 600 seconds unconditionally */ + if (t[1] - t[0] > 60) { + /* add entropy on daemon start and then every 60 seconds unconditionally */ nbytes = poolSize; r = (nbytes+sizeof(H_UINT)-1)/sizeof(H_UINT); fills = h->n_fills; -- cgit v1.2.3