aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2019-03-31 23:44:38 +0200
committerToni Uhlig <matzeton@googlemail.com>2019-03-31 23:44:38 +0200
commit78cd218c94ffb4c24e7f129b183c3402bada3c77 (patch)
treebfd74224cec7d525b4e1f29452721cf5d56b36e5
parentad688f7b47afbed5c6e4a9f708c93e1c0d7f8b78 (diff)
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 <matzeton@googlemail.com>
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
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.]) ;;