From 78cd218c94ffb4c24e7f129b183c3402bada3c77 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sun, 31 Mar 2019 23:44:38 +0200 Subject: use default random device /dev/random when only `--with-rngdev` as configure arg used and force the use of same for RNG Signed-off-by: Toni Uhlig --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 6625560..e75a518 100644 --- a/configure.ac +++ b/configure.ac @@ -141,6 +141,7 @@ AC_ARG_WITH([rngdev], [AS_HELP_STRING([--with-rngdev], [Set an alternative random device. (default: /dev/random)])], [use_customrng=yes], [with_rngdev="/dev/random"]) case ${with_rngdev} in + yes) with_rngdev="/dev/random" ;; /dev/random) ;; /dev/urandom) ;; *) AC_MSG_ERROR([Unknown random device \`${with_rngdev}\` for --with-rngdev: Only \`/dev/random\` xor \`/dev/urandom\` allowed. This option is unused on Windows targets.]) ;; -- cgit v1.2.3