Bug #1612: Use a stronger PRNG.

Currently just reads from /dev/urandom, and only on Linux.
This commit is contained in:
Adam Jackson 2007-11-16 19:53:11 -05:00
commit 514ba4ca72
3 changed files with 25 additions and 0 deletions

View file

@ -175,6 +175,12 @@ fi
AC_CHECK_FUNC([dlopen], [],
AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl"))
case $host_os in
linux*)
AC_DEFINE(HAVE_URANDOM, 1, [Has /dev/urandom]) ;;
*) ;;
esac
dnl Checks for library functions.
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr \