File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
server/src/test/java/org/elasticsearch/index/mapper/vectors Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1717import org .apache .lucene .search .IndexSearcher ;
1818import org .apache .lucene .store .Directory ;
1919import org .apache .lucene .tests .index .RandomIndexWriter ;
20+ import org .elasticsearch .common .Randomness ;
2021import org .elasticsearch .common .Strings ;
2122import org .elasticsearch .common .compress .CompressedXContent ;
2223import org .elasticsearch .index .IndexVersion ;
@@ -135,7 +136,7 @@ public void testDefaults() throws Exception {
135136
136137 public void testDefaultsPreIndexOptions () throws Exception {
137138 IndexVersion indexVersion = IndexVersionUtils .randomVersionBetween (
138- new Random (),
139+ Randomness . get (),
139140 NEW_SPARSE_VECTOR_INDEX_VERSION ,
140141 IndexVersionUtils .getPreviousVersion (SPARSE_VECTOR_PRUNING_INDEX_OPTIONS_VERSION )
141142 );
You can’t perform that action at this time.
0 commit comments