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

Add an optional per-thread seed to random number generator

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.7.0
    • Labels:
      None

      Description

      Now that the __wt_random function takes a local random context it makes sense to use a seed per context, rather than start the random sequence at the same place every time.

      According to the wiki page the MWC algorithm we use works with a random seed:
      https://en.wikipedia.org/wiki/Multiply-with-carry

        Attachments

          Activity

            People

            • Assignee:
              backlog-server-wt Backlog - WiredTiger Team
              Reporter:
              alexander.gorrod Alexander Gorrod
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: