initialize random statically with a fixed seed, just in case someone uses it before @beforeClass runs, e.g. static int i = random.nextInt();

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1049132 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-12-14 15:41:51 +00:00
parent 2d7f826781
commit 1d1c5ec67d
1 changed files with 1 additions and 1 deletions

View File

@ -965,7 +965,7 @@ public abstract class LuceneTestCase extends Assert {
private long seed; private long seed;
private static final Random seedRand = new Random(); private static final Random seedRand = new Random();
protected static final Random random = new Random(); protected static final Random random = new Random(0);
private String name = "<unknown>"; private String name = "<unknown>";