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

__wt_random requires initialization

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.7.0
    • Labels:
      None
    • # Replies:
      0
    • Last comment by Customer:
      true

      Description

      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.

        Issue Links

          Activity

          • Comments
          There are no comments yet on this issue.

            People

            • Assignee:
              keith.bostic Keith Bostic
              Reporter:
              keith.bostic Keith Bostic
              Participants:
              Last commenter:
              Keith Bostic
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                1 year, 44 weeks, 4 days ago