Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 27437 invoked from network); 20 Nov 2007 23:28:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Nov 2007 23:28:13 -0000 Received: (qmail 30377 invoked by uid 500); 20 Nov 2007 23:27:59 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 30341 invoked by uid 500); 20 Nov 2007 23:27:59 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 30330 invoked by uid 99); 20 Nov 2007 23:27:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2007 15:27:59 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2007 23:27:57 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 085D11A9832; Tue, 20 Nov 2007 15:27:50 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r596877 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/util/OERandom.java Date: Tue, 20 Nov 2007 23:27:50 -0000 To: derby-commits@db.apache.org From: djd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071120232751.085D11A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: djd Date: Tue Nov 20 15:27:50 2007 New Revision: 596877 URL: http://svn.apache.org/viewvc?rev=596877&view=rev Log: Fix the OERandom constructor that creates a OERandom from another not to have an identical seed to another created at the same time. Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/util/OERandom.java Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/util/OERandom.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/util/OERandom.java?rev=596877&r1=596876&r2=596877&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/util/OERandom.java (original) +++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/util/OERandom.java Tue Nov 20 15:27:50 2007 @@ -47,7 +47,10 @@ * @param oer */ public OERandom(OERandom oer) { - rand = new Random(System.currentTimeMillis()); + // Since these objects may be created at the same time, + // within the resolution of currentTimeMillis(), then + // ensure they have different seeds. + rand = new Random(System.currentTimeMillis() + oer.rand.nextLong()); Clast = oer.Clast; Cid = oer.Cid; Citem = oer.Citem;