mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
[master] restore dropped #else block
This commit is contained in:
parent
be60398405
commit
1b2e798976
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue