kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

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:
src/worker.c | 7+++++++
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