Fix test bug.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1484180 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2013-05-18 20:49:20 +00:00
parent f4904cdc1f
commit 251f2ceb88
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public class TestTimSorter extends BaseSortTestCase {
@Override
public Sorter newSorter(Entry[] arr) {
return new ArrayTimSorter<Entry>(arr, ArrayUtil.<Entry>naturalComparator(), random().nextInt(arr.length));
return new ArrayTimSorter<Entry>(arr, ArrayUtil.<Entry>naturalComparator(), _TestUtil.nextInt(random(), 0, arr.length));
}
}