libratbox/gnutls: call gnutls_rnd_refresh() to ensure our PRNG is initialized
This commit is contained in:
parent
cfa7b5fdb0
commit
4cb0a93d25
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue