]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] restore dropped #else block
authorEvan Hunt <each@isc.org>
Wed, 2 Nov 2016 05:34:33 +0000 (22:34 -0700)
committerEvan Hunt <each@isc.org>
Wed, 2 Nov 2016 05:34:33 +0000 (22:34 -0700)
lib/isc/random.c

index 70d65f05a3de3c7bda0b80eebe06858b2b454cc1..826e50d6dcb2f1b8b7e9cd24e4bcb0b9d6d827ca 100644 (file)
@@ -107,6 +107,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
 }