Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2047

__wt_random requires initialization

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • WT2.7.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The __wt_random code to handle an uninitialized random state is broken, if you don't initialize the random number state, you get 0 as your random number forever.

      I don't think this is a problem because the WiredTiger library always initializes its random number generation, I noticed because the mongodb-3.0 branch's test/format code doesn't initialize its random number generator.

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: