diff options
author | Jirka Hladky <jhladky@redhat.com> | 2024-09-30 13:49:42 +0200 |
---|---|---|
committer | Jirka Hladky <jhladky@redhat.com> | 2024-09-30 13:49:42 +0200 |
commit | bd953284f4da96737f9c8727916ca360ea23b27b (patch) | |
tree | 5ce5305bd9c5cc7d539b320014b124d975995ab5 | |
parent | Bumped version to 1.9.19 (diff) | |
download | haveged-bd953284f4da96737f9c8727916ca360ea23b27b.tar.xz haveged-bd953284f4da96737f9c8727916ca360ea23b27b.zip |
add entropy every 60 seconds unconditionally
-rw-r--r-- | src/haveged.c | 4 |
1 files 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; |