[bind10-dev] Query ID generation?

JINMEI Tatuya / 神明達哉 jinmei at isc.org
Mon May 24 18:48:01 UTC 2010


At Fri, 21 May 2010 11:41:20 +0800,
"zhanglikun" <zlkzhy at gmail.com> wrote:

> > The question with such a class is always "is this too simple to bother?"
> > In C++ the answer is "probably not", in Python the answer is "maybe". :)
> > 
> > Any options? Is it worth adding this to the backlog?
> 
> I remember yesterday michael said we need a library for creating
> query/answer, so the class for generating one query ID can be included in
> that library?

I think so (I guess you mean something like BIND 9's "dispatch"
module).

But I guess the main question is, even if it's "included", whether we
have a separate class only responsible for generating random numbers
so that we can test it separately.

I don't have a strong opinion on this right now, but my gut feeling is
"yes", because
- (IMO) we should generally prefer (many of) smaller classes rather
  than a single monolithic all-rounder class.
- random numbers we'd use in DNS are often related to security
  issues.  So it would be good if we can frequently test the basic
  properties (entropy, distribution, etc), and for that purpose a
  small, focused class would be more convenient.

---
JINMEI, Tatuya
Internet Systems Consortium, Inc.



More information about the bind10-dev mailing list