summaryrefslogtreecommitdiff
path: root/lib/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/random.h')
-rw-r--r--lib/random.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/random.h b/lib/random.h
index 59e3f3c0c4..1538ec8da6 100644
--- a/lib/random.h
+++ b/lib/random.h
@@ -25,6 +25,7 @@
#include <gnutls/crypto.h>
#include <crypto-backend.h>
+#include "nettle/rnd-common.h"
extern int crypto_rnd_prio;
extern void *gnutls_rnd_ctx;
@@ -50,10 +51,7 @@ int _gnutls_rnd_init(void);
inline static int _gnutls_rnd_check(void)
{
- if (_gnutls_rnd_ops.check)
- return _gnutls_rnd_ops.check(gnutls_rnd_ctx);
- else
- return 0;
+ return _rnd_system_entropy_check();
}
#ifndef _WIN32