return 0;
}
seed = (unsigned int)time(NULL) ^ (unsigned int)getpid() ^
- (unsigned int)worker->thread_num;
+ (((unsigned int)worker->thread_num)<<17);
+ /* shift thread_num so it does not match out pid bits */
if(!ub_initstate(seed, worker->rndstate, RND_STATE_SIZE)) {
log_err("could not init random numbers.");
worker_delete(worker);
+30 July 2007: Wouter
+ - changed random state init, so that sequential process IDs are not
+ cancelled out by sequential thread-ids in the random number seed.
+
27 July 2007: Wouter
- removed useless -C debug option. It did not work.
- text edit of documentation.
o configuration option where port 53 is used for send and receive, no other
ports are used.
o prime sequence in multiple queries, if glue missing from prime sequence.
+o (option) to not send replies to clients after a timeout of (say 5 secs) has
+ passed, but keep task active for later retries by client.