From 45dfa8916f911e55b60cb03c1cd0f6cea1141b63 Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Tue, 30 Aug 2016 10:29:57 +0200 Subject: Use RAND_seed() instead of RAND_add() where appropriate --- src/openssl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/openssl.c b/src/openssl.c index 7c28c84..9fc4595 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -7844,7 +7844,7 @@ static int randL_stir(struct randL_state *st, unsigned rqstd) { arc4random(data, n); - RAND_add(data, n, n); + RAND_seed(data, n); count += n; } @@ -7858,7 +7858,7 @@ static int randL_stir(struct randL_state *st, unsigned rqstd) { break; } - RAND_add(data, n, n); + RAND_seed(data, n); count += n; } @@ -7871,7 +7871,7 @@ static int randL_stir(struct randL_state *st, unsigned rqstd) { if (0 != sysctl(mib, countof(mib), data, &n, (void *)0, 0)) break; - RAND_add(data, n, n); + RAND_seed(data, n); count += n; } @@ -7906,7 +7906,7 @@ static int randL_stir(struct randL_state *st, unsigned rqstd) { goto error; default: - RAND_add(data, n, n); + RAND_seed(data, n); count += n; } -- cgit v1.2.3-59-g8ed1b