Skip to content

Commit

Permalink
add entropy every 60 seconds unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
Jirka Hladky committed Sep 30, 2024
1 parent 20e69a2 commit bd95328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/haveged.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bd95328

Please sign in to comment.