>> those things combined mean that you get 15 bits of randomness
>> from query id and 15 from source port, giving 30 bits,
>> so ndb/dns is okay (for now).
> 
> why only 15 in the query id?  that's an artifact of rand()
> which returns 0 ≤ n ≤ 0x7fff.  why not return numbers
> between 0 and 0xffff?

one might change rand or dns to get 16 bits, and that'd be fine.
i doubt many programs depend on rand not returning
numbers bigger than 32767.  or you could use fastrand()&0xffff
in dns, which would be even better.

it's just one bit though.  getting the other 15 was more important.

russ


Reply via email to