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

__wt_random requires initialization

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • WT2.7.0
    • None
    • 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

              keith.bostic@mongodb.com Keith Bostic
              keith.bostic@mongodb.com Keith Bostic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: