From 8c567e5005cac271b1e213debe3b75afe6c58746 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Thu, 22 Oct 2020 07:37:45 +0000 Subject: [PATCH] Update: Also seed with the length of our seed --- src/prng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/prng.c b/src/prng.c index e51d822c..b348e00f 100644 --- a/src/prng.c +++ b/src/prng.c @@ -133,6 +133,7 @@ void prng_write(const void *buffer, size_t len) thread_mutex_lock(&digest_a_lock); digest_write(digest_a, buffer, len); + digest_write(digest_a, &len, sizeof(len)); thread_mutex_unlock(&digest_a_lock); }