commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Commented] (MATH-899) A random crash of MersenneTwister random generator
Date Fri, 16 Nov 2012 15:12:12 GMT


Gilles commented on MATH-899:

bq. a more fine-grained sync would not be of much benefit

Maybe, maybe not.
Another approach (and preferrable in my non-expert opinion) is to use the JDK's [atomic utilities|].

bq. for just the RNGs this would be feasible

I agree, modulo the above remark.

> A random crash of MersenneTwister random generator
> --------------------------------------------------
>                 Key: MATH-899
>                 URL:
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: Windows 7, JDK 1.7.05
>            Reporter: Alexander Nozik
>            Priority: Minor
> There is a very small probability that MersenneTwister generator gives a following error:

> java.lang.ArrayIndexOutOfBoundsException: 624
> in 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message