From 4cb0a93d259fe72ef06579c00f91db2e6faa0464 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 16 Feb 2015 17:40:25 -0600 Subject: [PATCH] libratbox/gnutls: call gnutls_rnd_refresh() to ensure our PRNG is initialized --- libratbox/src/gnutls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libratbox/src/gnutls.c b/libratbox/src/gnutls.c index 515aeb564..44e51a907 100644 --- a/libratbox/src/gnutls.c +++ b/libratbox/src/gnutls.c @@ -535,6 +535,8 @@ rb_init_prng(const char *path, prng_seed_t seed_type) { #if GNUTLS_VERSION_MAJOR < 3 gcry_fast_random_poll(); +#else + gnutls_rnd_refresh(); #endif return 1; }