aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 1 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index eeb6634..6d907bd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -149,11 +149,7 @@ dnl Check for more secure randomization functions
AC_CHECK_HEADERS([bsd/stdlib.h],, [random_enabled=yes])
AC_SEARCH_LIBS([arc4random], [bsd],,,)
AC_CHECK_FUNCS([arc4random], [random_enabled=],)
-if test x"${random_enabled}" != x; then
- AC_CHECK_FUNCS([timespec_get srandom random],
- [random_enabled=yes],
- [random_enabled=])
-else
+if test x"${random_enabled}" = x; then
arc4random_enabled=yes
fi