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

A random crash of MersenneTwister random generator

Rank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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. SynchronizedRandomGeneratorTest.java
          4 kB
          Gilles Sadowski
        2. SynchronizedRandomGenerator.java
          3 kB
          Gilles Sadowski

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment