The list of crypto devices in m4/gc-random.m4 is from 2006. I get test failures of module 'getrandom' on current versions of NetBSD and OpenBSD (NetBSD 7.0 and 9.0, and OpenBSD 6.5, to be precise). These platforms have the quasi-standard /dev/random and /dev/urandom meanwhile. No more /dev/srandom exists.
This patch fixes the test failures. 2020-05-30 Bruno Haible <br...@clisp.org> crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD. * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD. diff --git a/m4/gc-random.m4 b/m4/gc-random.m4 index 958c871..15751cb 100644 --- a/m4/gc-random.m4 +++ b/m4/gc-random.m4 @@ -1,4 +1,4 @@ -# gc-random.m4 serial 7 +# gc-random.m4 serial 8 dnl Copyright (C) 2005-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -12,18 +12,12 @@ AC_DEFUN([gl_GC_RANDOM], AC_REQUIRE([AC_CANONICAL_HOST]) case "$host_os" in - *openbsd* | *mirbsd*) + *mirbsd*) NAME_OF_RANDOM_DEVICE="/dev/srandom" NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/prandom" NAME_OF_NONCE_DEVICE="/dev/urandom" ;; - *netbsd*) - NAME_OF_RANDOM_DEVICE="/dev/srandom" - NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/urandom" - NAME_OF_NONCE_DEVICE="/dev/urandom" - ;; - *solaris* | *irix* | *dec-osf* ) NAME_OF_RANDOM_DEVICE="/dev/random" NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/random"