Maintained by: NLnet Labs

[Unbound-users] patch implementing round robin rrsets

Robert Edmonds
Thu Mar 8 01:35:21 CET 2012


James Cloos wrote:
> >>>>> "WCAW" == W C A Wijngaards <wouter at nlnetlabs.nl> writes:
> 
> WCAW> The line of interest is this one:
> WCAW> -		rr = random();
> 
> Cf random_r(3).
> 
> The (linux) page says that it is in the namespace
> iff _SVID_SOURCE || _BSD_SOURCE, so it should be OK
> essentially everywhere.

no, those are the feature test macro requirements.  read farther down:

    CONFORMING TO
           These functions are nonstandard glibc extensions.

random_r() isn't in POSIX, and it isn't available on, e.g., freebsd.

-- 
Robert Edmonds
edmonds at debian.org