mirror of https://github.com/apache/lucene.git
fix bug where wrong random was being used
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1161974 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cb0b8c02e0
commit
a555a34924
|
@ -868,7 +868,7 @@ public abstract class LuceneTestCase extends Assert {
|
|||
if (r.nextBoolean()) {
|
||||
if (rarely(r)) {
|
||||
// crazy value
|
||||
c.setTermIndexInterval(random.nextBoolean() ? _TestUtil.nextInt(r, 1, 31) : _TestUtil.nextInt(r, 129, 1000));
|
||||
c.setTermIndexInterval(r.nextBoolean() ? _TestUtil.nextInt(r, 1, 31) : _TestUtil.nextInt(r, 129, 1000));
|
||||
} else {
|
||||
// reasonable value
|
||||
c.setTermIndexInterval(_TestUtil.nextInt(r, 32, 128));
|
||||
|
|
Loading…
Reference in New Issue