lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <dawid.we...@gmail.com>
Subject Re: FacetExample.py
Date Thu, 14 Feb 2013 17:12:39 GMT
> 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.

Mime
View raw message