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:
Robert Muir 2011-08-26 03:01:19 +00:00
parent cb0b8c02e0
commit a555a34924
1 changed files with 1 additions and 1 deletions

View File

@ -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));