mirror of https://github.com/apache/lucene.git
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:
parent
f4904cdc1f
commit
251f2ceb88
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue