mirror of https://github.com/apache/lucene.git
LUCENE-4410: use thread local random to prevent exceptions when threads share the same FilterStrategy
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1388402 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
68e0f1c738
commit
bcb88e741e
|
@ -991,7 +991,7 @@ public class _TestUtil {
|
|||
return new FilteredQuery.RandomAccessFilterStrategy() {
|
||||
@Override
|
||||
protected boolean useRandomAccess(Bits bits, int firstFilterDoc) {
|
||||
return random.nextBoolean();
|
||||
return LuceneTestCase.random().nextBoolean();
|
||||
}
|
||||
};
|
||||
case 3:
|
||||
|
|
Loading…
Reference in New Issue