LUCENE-9731: restore consistent random seed to HnswGraphBuilder (#2299)

This commit is contained in:
Michael Sokolov 2021-02-03 22:14:01 -05:00 committed by GitHub
parent 8fccdfe353
commit e2cf6ee74d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ public final class Lucene90VectorWriter extends VectorWriter {
}
}
HnswGraphBuilder hnswGraphBuilder =
new HnswGraphBuilder(vectorValues, maxConn, beamWidth, System.currentTimeMillis());
new HnswGraphBuilder(vectorValues, maxConn, beamWidth, HnswGraphBuilder.randSeed);
hnswGraphBuilder.setInfoStream(segmentWriteState.infoStream);
HnswGraph graph = hnswGraphBuilder.build(vectorValues.randomAccess());