From 3d6b602fe9d64bf80f60de96375fb48f5459095e Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sat, 11 Nov 2017 13:04:46 +0100 Subject: [PATCH] use /dev/urandom by default --- configure | 3 +-- libsndio/aucat.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 3882699..9c1d08a 100755 --- a/configure +++ b/configure @@ -58,8 +58,7 @@ case `uname` in ldadd="-lrt" user=sndiod so_link="libsndio.so" - defs='-D_GNU_SOURCE -DDEV_RANDOM=\\"/dev/urandom\\" \\\ - -DHAVE_SOCK_CLOEXEC -DHAVE_CLOCK_GETTIME' + defs='-D_GNU_SOURCE -DHAVE_SOCK_CLOEXEC -DHAVE_CLOCK_GETTIME' ;; NetBSD) sun=no diff --git a/libsndio/aucat.c b/libsndio/aucat.c index 2a61514..34b2b29 100644 --- a/libsndio/aucat.c +++ b/libsndio/aucat.c @@ -40,7 +40,7 @@ #ifndef HAVE_ARC4RANDOM #ifndef DEV_RANDOM -#define DEV_RANDOM "/dev/arandom" +#define DEV_RANDOM "/dev/urandom" #endif static int