diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2017-02-28 19:18:43 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-02-28 14:18:26 -0500 |
commit | ab15f65fe5d6d50e705c1064a6a5c1a0c2a8e045 (patch) | |
tree | 05e009185721815e12a56c71e7c4d7af9f1ea6fe /configure.ac | |
parent | 3f61c7a09b220805ee6778f4bf2f429e3df8e37a (diff) |
Use arc4random_buf(3) if available to generate cookies.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
(cherry picked from commit 957e8db38f27932d353e86e9aa69cf16778b18f1)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 62cd547ef..610de09b4 100644 --- a/configure.ac +++ b/configure.ac @@ -225,6 +225,8 @@ AC_REPLACE_FUNCS([reallocarray strcasecmp strcasestr strlcat strlcpy strndup\ timingsafe_memcmp]) AM_CONDITIONAL(POLL, [test "x$ac_cv_func_poll" = "xyes"]) +AC_CHECK_LIB([bsd], [arc4random_buf]) + AC_CHECK_DECLS([program_invocation_short_name], [], [], [[#include <errno.h>]]) dnl Check for SO_PEERCRED #define |