Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 93169 invoked from network); 31 Oct 2009 02:33:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Oct 2009 02:33:23 -0000 Received: (qmail 95872 invoked by uid 500); 31 Oct 2009 02:33:22 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 95753 invoked by uid 500); 31 Oct 2009 02:33:22 -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 95632 invoked by uid 99); 31 Oct 2009 02:33:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Oct 2009 02:33:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Oct 2009 02:33:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 86ECE234C1F1 for ; Fri, 30 Oct 2009 19:32:59 -0700 (PDT) Message-ID: <2060139224.1256956379549.JavaMail.jira@brutus> Date: Sat, 31 Oct 2009 02:32:59 +0000 (UTC) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (MATH-309) nextExponential parameter check bug - patch supplied In-Reply-To: <534445886.1256649659525.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MATH-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Phil Steitz updated MATH-309: ----------------------------- Affects Version/s: 1.0 1.1 1.2 Fix Version/s: 2.1 > nextExponential parameter check bug - patch supplied > ---------------------------------------------------- > > Key: MATH-309 > URL: https://issues.apache.org/jira/browse/MATH-309 > Project: Commons Math > Issue Type: Bug > Affects Versions: 1.0, 1.1, 1.2, 2.0 > Environment: Ubuntu 9.04 > Reporter: Mikkel Meyer Andersen > Priority: Minor > Fix For: 2.1 > > Attachments: patch_random_exp > > Original Estimate: 0.08h > Remaining Estimate: 0.08h > > Index: src/main/java/org/apache/commons/math/random/RandomDataImpl.java > =================================================================== > --- src/main/java/org/apache/commons/math/random/RandomDataImpl.java (revision 830102) > +++ src/main/java/org/apache/commons/math/random/RandomDataImpl.java (working copy) > @@ -462,7 +462,7 @@ > * @return the random Exponential value > */ > public double nextExponential(double mean) { > - if (mean < 0.0) { > + if (mean <= 0.0) { > throw MathRuntimeException.createIllegalArgumentException( > "mean must be positive ({0})", mean); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.