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

Add an optional per-thread seed to random number generator

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: