Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-291

Random number generation has flaws

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.3.0
    • Core
    • None
    • All

    Description

      Random generators should be initialised once per thread, and should not be reinitialised within functions. Seeding with the current time will give the same sequences if seeding takes place at pretty much the same time. Re-entrant versions should be used, and are not. Better random generators (faster as well as more random) are available, notably PCG http://www.pcg-random.org/

      Attachments

        Activity

          People

            martin brampton martin brampton (Inactive)
            martin brampton martin brampton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.