mirror of https://github.com/apache/lucene.git
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:
parent
2d7f826781
commit
1d1c5ec67d
|
@ -965,7 +965,7 @@ public abstract class LuceneTestCase extends Assert {
|
|||
private long seed;
|
||||
|
||||
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>";
|
||||
|
||||
|
|
Loading…
Reference in New Issue