From 43155d7273d3a7133bff7b4823d7a4b0344a0b55 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Thu, 22 Oct 2020 08:25:43 +0000 Subject: [PATCH] Feature: Abuse _slave_thread() to run prng_auto_reseed() in the breaks --- src/slave.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slave.c b/src/slave.c index 67d4ffb8..823e449e 100644 --- a/src/slave.c +++ b/src/slave.c @@ -54,6 +54,7 @@ #include "logging.h" #include "source.h" #include "format.h" +#include "prng.h" #define CATMODULE "slave" @@ -901,6 +902,7 @@ static void *_slave_thread(void *arg) global_unlock(); thread_sleep(1000000); + prng_auto_reseed(); thread_mutex_lock(&_slave_mutex); if (slave_running == 0) { thread_mutex_unlock(&_slave_mutex);