BIND 10 #1812: HashTest tests fail on OpenBSD

BIND 10 Development do-not-reply at isc.org
Mon Mar 19 12:21:46 UTC 2012


#1812: HashTest tests fail on OpenBSD
-------------------------------------+-------------------------------------
                   Reporter:  muks   |                 Owner:  UnAssigned
                       Type:         |                Status:  reviewing
  defect                             |             Milestone:
                   Priority:         |  Sprint-20120320
  medium                             |            Resolution:
                  Component:         |             Sensitive:  0
  Unclassified                       |           Sub-Project:  DNS
                   Keywords:         |  Estimated Difficulty:  0
            Defect Severity:  N/A    |           Total Hours:  0
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------

Comment (by muks):

 Btw, the tests fail because `random()` always returns 0 on OpenBSD 5.0,
 when the RNG is initialized with `srandom(0)`.

 Here is a testcase:

 {{{
 #include <stdio.h>
 #include <stdlib.h>

 int
 main (int argc, char *argv[])
 {
   int i;

   srandom (0);

   for (i = 0; i < 32; i++)
     printf ("%ld\n", random());

   return 0;
 }
 }}}

 This prints all 0s on OpenBSD, and random values on Linux.

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


More information about the bind10-tickets mailing list