Fix test bug.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1440311 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2013-01-30 09:14:08 +00:00
parent a81ac90986
commit 913b168255
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ public class TestPayloadsOnVectors extends LuceneTestCase {
for (int i = 0; i < len; ++i) { for (int i = 0; i < len; ++i) {
terms[i] = RandomPicks.randomFrom(random(), sampleTerms); terms[i] = RandomPicks.randomFrom(random(), sampleTerms);
if (weird) { if (weird) {
positionsIncrements[i] = random().nextInt(1 << 18); positionsIncrements[i] = _TestUtil.nextInt(random(), 1, 1 << 18);
startOffsets[i] = random().nextInt(); startOffsets[i] = random().nextInt();
endOffsets[i] = random().nextInt(); endOffsets[i] = random().nextInt();
} else if (i == 0) { } else if (i == 0) {