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

Add an optional per-thread seed to random number generator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.7.0
    • Component/s: None
    • 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-execution Backlog - Storage Execution Team
            Reporter:
            alexander.gorrod Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: