Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroittaa <oittaa@users.noreply.github.com>2017-10-31 16:25:07 +0300
committermonojenkins <jo.shields+jenkins@xamarin.com>2017-10-31 16:25:07 +0300
commit35acde58d43305b5428d04ddc660e8348bb6fbab (patch)
treebf73fb6067b0f87a6889d3acaea13a57060ea11e /configure.ac
parent32d2f28518ecfad2e8f3556f9c120418418fc4ec (diff)
Use getrandom() instead of /dev/urandom on Linux (#5851)
Use getrandom() instead of /dev/urandom on Linux getrandom() was introduced in version 3.17 of the Linux kernel and glibc has implemented it since version 2.25.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ee1b01a18d4..945c1e105a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2643,6 +2643,12 @@ if test x$host_win32 = xno; then
#endif
])
AC_CHECK_HEADERS([termios.h])
+
+ dnl *********************************
+ dnl *** Checks for random ***
+ dnl *********************************
+ AC_CHECK_HEADERS(sys/random.h)
+ AC_CHECK_FUNCS(getrandom getentropy)
else
dnl *********************************
dnl *** Checks for Windows compilation ***