Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-899

A random crash of MersenneTwister random generator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • 3.1
    • None
    • None
    • Windows 7, JDK 1.7.05

    Description

      There is a very small probability that MersenneTwister generator gives a following error:
      java.lang.ArrayIndexOutOfBoundsException: 624
      in MersenneTwister.java line 253
      The error is completely random and its probability is about 1e-8.

      UPD: The problem most probably arises only in multy-thread mode.

      Attachments

        1. SynchronizedRandomGenerator.java
          3 kB
          Gilles Sadowski
        2. SynchronizedRandomGeneratorTest.java
          4 kB
          Gilles Sadowski

        Activity

          People

            Unassigned Unassigned
            darksnake Alexander Nozik
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: