Return-Path: X-Original-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1FC93DF32 for ; Thu, 14 Feb 2013 17:26:33 +0000 (UTC) Received: (qmail 44593 invoked by uid 500); 14 Feb 2013 17:26:33 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 44568 invoked by uid 500); 14 Feb 2013 17:26:32 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Delivered-To: moderator for pylucene-dev@lucene.apache.org Received: (qmail 7871 invoked by uid 99); 14 Feb 2013 17:13:27 -0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dawid.weiss@gmail.com designates 209.85.217.177 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=LPLAGEhuQgs3Yhh8MESckGgHKKm5973e+8mVIkCU2EY=; b=l+369aeigRUADk5dJscmenXIqMH7WlMHZoOOhsmz7DtQVAlYtUTIcDmU2LKDAjR63i a3i1mt5IWWIj/YcJIb4+yrtN44/2TLrJa1Z5KY7VFFLBrWwyTe8tCv0towyLnEjNtxae wh4ifqsWqSkuFcoiJbO58mEvOPDKVAuEUoYIdf0F+FlsM5fVDMBmYEJvDGuJZ2y0k7qa OEfI+Wq2brMWSV+JQmFrSYDUTpGS8tC4jwHJOSLDNQLnaxYSSV1i36iqO5rrDknf133i rwRolShjqkzejkbyJjl2eWlUSYlTDGqBM1+m/Vw+XqOUWOh4liKa1Or6vTbOkWugnyMa OfRg== X-Received: by 10.112.29.225 with SMTP id n1mr904257lbh.58.1360861980038; Thu, 14 Feb 2013 09:13:00 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <0FECC73F-F1B8-40DD-9A62-07520CA83799@apache.org> References: <0FECC73F-F1B8-40DD-9A62-07520CA83799@apache.org> From: Dawid Weiss Date: Thu, 14 Feb 2013 18:12:39 +0100 Message-ID: Subject: Re: FacetExample.py To: Andi Vajda Cc: "pylucene-dev@lucene.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org > So, if each thread gets the same seed, then they should also get the same random values, right ? They would start from the same seed so if they're calling that Random in the same pattern then yes -- they'd get the same values. Any real randomness will be non-reproducible. If this is needed for a test (and you know it won't be a problem if the test doesn't reproduce) then you could just do new Random() instead of calling LuceneTestCase's generator. D.