Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 630AC7A4F for ; Sat, 5 Nov 2011 06:51:21 +0000 (UTC) Received: (qmail 82201 invoked by uid 500); 5 Nov 2011 06:51:20 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 81867 invoked by uid 500); 5 Nov 2011 06:51:17 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 81851 invoked by uid 99); 5 Nov 2011 06:51:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Nov 2011 06:51:13 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Nov 2011 06:51:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7BE58333033 for ; Sat, 5 Nov 2011 06:50:51 +0000 (UTC) Date: Sat, 5 Nov 2011 06:50:51 +0000 (UTC) From: "Phil Steitz (Resolved) (JIRA)" To: issues@commons.apache.org Message-ID: <449319721.2587.1320475851516.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <503227206.55673.1320326856574.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (MATH-701) Seeding a default RNG MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Phil Steitz resolved MATH-701. ------------------------------ Resolution: Fixed Changes to WELL, MersenneTwister committed in r1197896. > Seeding a default RNG > --------------------- > > Key: MATH-701 > URL: https://issues.apache.org/jira/browse/MATH-701 > Project: Commons Math > Issue Type: Bug > Reporter: Gilles > Assignee: Gilles > Fix For: 3.0 > > > In "RandomDataImpl": > {code} > private RandomGenerator getRan() { > if (rand == null) { > rand = new JDKRandomGenerator(); > rand.setSeed(System.currentTimeMillis()); > } > return rand; > } > {code} > 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira