seed = (unsigned int)time(NULL) ^ (unsigned int)getpid() ^
(((unsigned int)worker->thread_num)<<17);
/* shift thread_num so it does not match out pid bits */
- if(!(worker->rndstate = ub_initstate(seed, NULL))) {
+ if(!(worker->rndstate = ub_initstate(seed, worker->daemon->rand))) {
seed = 0;
log_err("could not init random numbers.");
worker_delete(worker);
+4 November 2010: Wouter
+ - Use central entropy to seed threads.
+
3 November 2010: Wouter
- Change the rtt used to probe EDNS-timeout hosts to 1000 msec.