Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 98325 invoked from network); 27 Oct 2009 13:21:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Oct 2009 13:21:23 -0000 Received: (qmail 66299 invoked by uid 500); 27 Oct 2009 13:21:22 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 66175 invoked by uid 500); 27 Oct 2009 13:21:21 -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 66165 invoked by uid 99); 27 Oct 2009 13:21:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 13:21:21 +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; Tue, 27 Oct 2009 13:21:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 80BF6234C04C for ; Tue, 27 Oct 2009 06:20:59 -0700 (PDT) Message-ID: <534445886.1256649659525.JavaMail.jira@brutus> Date: Tue, 27 Oct 2009 13:20:59 +0000 (UTC) From: "Mikkel Meyer Andersen (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (MATH-309) nextExponential parameter check bug - patch supplied 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 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: 2.0 Environment: Ubuntu 9.04 Reporter: Mikkel Meyer Andersen Priority: Minor 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.