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

__wt_random requires initialization

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.7.0
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: