diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-02-22 13:06:31 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-02-22 13:06:31 +0100 |
commit | 08d7dd88787485c90d4757d622beb2526bb3ea14 (patch) | |
tree | 69a1add05141a31c7cc570f2359e4f40dae5b89c /configure.ac | |
parent | e9b9ceba14157a10fe76f7e10850e52a73cd6ea5 (diff) |
pt_random(): reading from /dev/random instead of calling less secure random()
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
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 |