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:
Simon Willnauer 2012-09-21 10:07:39 +00:00
parent 68e0f1c738
commit bcb88e741e
1 changed files with 1 additions and 1 deletions

View File

@ -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: