[ldns-users] Improper randomness in ldns_resolver_nameservers_randomize() function

Zbynek Michl zbynek.michl at nic.cz
Wed Apr 21 17:20:16 UTC 2010


there is no seed initialization before random() function and it leads to select 
the first resolver everytime from the list if it contains exactly two resolvers.
I guess that init with "srandom((unsigned int)time(NULL))" should be enough for 
this purpose.


More information about the ldns-users mailing list