commit 73fc58163d36822e30ab485911419ffed09ce62b
parent f57ca7dcc2e208badea229cc05ab4f90bb22d013
Author: Joris Vink <joris@coders.se>
Date: Mon, 27 Feb 2017 21:31:09 -0800
add warning + RAND_poll() to callback.
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/worker.c b/src/worker.c
@@ -586,6 +586,13 @@ worker_unlock(void)
static void
worker_entropy_recv(struct kore_msg *msg, const void *data)
{
+ if (msg->length != 1024) {
+ kore_log(LOG_WARNING,
+ "short entropy response (got:%u - wanted:1024)",
+ msg->length);
+ }
+
+ RAND_poll();
RAND_seed(data, msg->length);
}
#endif