From 299d86d18d9313315b884e015de4a92990e3ff38 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Thu, 22 Oct 2020 10:49:21 +0000 Subject: [PATCH] Feature: Seed PRNG with yp replies --- src/yp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/yp.c b/src/yp.c index acd31ae7..7248a255 100644 --- a/src/yp.c +++ b/src/yp.c @@ -30,6 +30,7 @@ #include "cfgfile.h" #include "stats.h" #include "listensocket.h" +#include "prng.h" #ifdef WIN32 #define snprintf _snprintf @@ -111,6 +112,8 @@ static size_t handle_returned_header (void *ptr, size_t size, size_t nmemb, void ypdata_t *yp = stream; size_t bytes = size * nmemb; + prng_write(ptr, bytes); + /* ICECAST_LOG_DEBUG("header from YP is \"%.*s\"", bytes, ptr); */ if (strncasecmp (ptr, "YPResponse: 1", 13) == 0) yp->cmd_ok = 1;