GNUTLS: Log PRNG initialisation

This commit is contained in:
Aaron Jones 2016-09-16 21:57:06 +00:00
parent 2b5bf0bada
commit 9986455edc
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -708,6 +708,9 @@ 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();
rb_lib_log("%s: PRNG initialised", __func__);
#else
rb_lib_log("%s: Skipping PRNG initialisation; not required by GNUTLS v3+ backend", __func__);
#endif #endif
return 1; return 1;
} }