From bd97809fdfae19d78f7fae0352bf062606a30a86 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Tue, 1 Nov 2016 22:34:59 -0700 Subject: [PATCH] [v9_9] restore dropped #else block --- lib/isc/random.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/isc/random.c b/lib/isc/random.c index b0d81c433c..ba8b39970e 100644 --- a/lib/isc/random.c +++ b/lib/isc/random.c @@ -73,6 +73,15 @@ isc_random_seed(isc_uint32_t seed) arc4random_stir(); #elif defined(HAVE_ARC4RANDOM_ADDRANDOM) arc4random_addrandom((u_char *) &seed, sizeof(isc_uint32_t)); +#else + /* + * If arcrandom() is available and no corresponding seeding + * function arc4random_addrandom() is available, no seeding is + * done on such platforms (e.g., OpenBSD 5.5). This is because + * the OS itself is supposed to seed the RNG and it is assumed + * that no explicit seeding is required. + */ + UNUSED(seed); #endif }