BIND 10 #2846: UniformRandomIntegerGeneratorTest.IntegerRange failure on Debian

BIND 10 Development do-not-reply at isc.org
Mon Mar 11 03:05:57 UTC 2013


#2846: UniformRandomIntegerGeneratorTest.IntegerRange failure on Debian
-------------------------------------+-------------------------------------
            Reporter:  muks          |                        Owner:
                Type:  defect        |                       Status:  new
            Priority:  medium        |                    Milestone:  New
           Component:  Unclassified  |  Tasks
            Keywords:                |                   Resolution:
           Sensitive:  0             |                 CVSS Scoring:
         Sub-Project:  DNS           |              Defect Severity:  N/A
Estimated Difficulty:  0             |  Feature Depending on Ticket:
         Total Hours:  0             |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------

Comment (by muks):

 The `ASSERT_EQ()`s args are in opposite order in this macro call. What's
 happening is that it expects a value of 10, but it gets 9.

 Reading testcase and our code briefly, both appear to be correct to me, so
 this is probably a bug in the underlying boost implementation that
 `UniformRandomIntegerGenerator` wraps around.

 The testcase generates 100 random values and expects each of the numbers
 in [1, 10] (inclusive) to be represented at least once. I haven't checked
 what guarantees boost offers about this with such a short range.

-- 
Ticket URL: <http://bind10.isc.org/ticket/2846#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list