commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (Created) (JIRA)" <>
Subject [jira] [Created] (MATH-701) Seeding a default RNG
Date Thu, 03 Nov 2011 13:27:36 GMT
Seeding a default RNG

                 Key: MATH-701
             Project: Commons Math
          Issue Type: Bug
            Reporter: Gilles
            Assignee: Gilles
             Fix For: 3.0

In "RandomDataImpl":
private RandomGenerator getRan() {
    if (rand == null) {
        rand = new JDKRandomGenerator();
    return rand;
The conditional branch is used by "sample()" in "AbstractContinuousDistribution".

When several "...Distribution" objects are instantiated in a short time interval, they are
seeded with the same value.

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


View raw message