From 251f2ceb88c0d2148e7afbcbc202efd409cc84e4 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Sat, 18 May 2013 20:49:20 +0000 Subject: [PATCH] Fix test bug. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1484180 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java b/lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java index df1899644e9..456d36d7406 100644 --- a/lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java +++ b/lucene/core/src/test/org/apache/lucene/util/TestTimSorter.java @@ -25,7 +25,7 @@ public class TestTimSorter extends BaseSortTestCase { @Override public Sorter newSorter(Entry[] arr) { - return new ArrayTimSorter(arr, ArrayUtil.naturalComparator(), random().nextInt(arr.length)); + return new ArrayTimSorter(arr, ArrayUtil.naturalComparator(), _TestUtil.nextInt(random(), 0, arr.length)); } }