libratbox/gnutls: call gnutls_rnd_refresh() to ensure our PRNG is initialized

This commit is contained in:
William Pitcock 2015-02-16 17:40:25 -06:00
parent cfa7b5fdb0
commit 4cb0a93d25

View file

@ -535,6 +535,8 @@ rb_init_prng(const char *path, prng_seed_t seed_type)
{ {
#if GNUTLS_VERSION_MAJOR < 3 #if GNUTLS_VERSION_MAJOR < 3
gcry_fast_random_poll(); gcry_fast_random_poll();
#else
gnutls_rnd_refresh();
#endif #endif
return 1; return 1;
} }