From abb425e70f217eb660aadb29885e07a7238b7feb Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 3 Dec 2017 15:21:12 +0100 Subject: util.crand: Make it possible to use arc4random on Linux (needs libbsd) --- configure | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure') diff --git a/configure b/configure index c26f78ed..13f7eff3 100755 --- a/configure +++ b/configure @@ -528,6 +528,8 @@ OPENSSL_LIBS="-l$OPENSSL_LIB" if [ "$PRNG" = "OPENSSL" ]; then PRNGLIBS=$OPENSSL_LIBS +elif [ "$PRNG" = "ARC4RANDOM" -a "$(uname)" = "Linux" ]; then + PRNGLIBS="-lbsd" fi # Write config -- cgit v1.2.3