From b2c70855a7b05f207f38f4bdd58fe6600bef9ec9 Mon Sep 17 00:00:00 2001 From: William Ahern Date: Wed, 19 Oct 2016 13:48:01 -0700 Subject: unbreak BSDs by using arc4random_buf --- src/openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/openssl.c b/src/openssl.c index 78dbd65..88561aa 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -7824,11 +7824,11 @@ static int randL_stir(struct randL_state *st, unsigned rqstd) { int error; unsigned char data[256]; -#if HAVE_ARC4RANDOM +#if HAVE_ARC4RANDOM_BUF while (count < rqstd) { size_t n = MIN(rqstd - count, sizeof data); - arc4random(data, n); + arc4random_buf(data, n); RAND_seed(data, n); -- cgit v1.2.3-59-g8ed1b