diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90VectorWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90VectorWriter.java index b963b1c7629..21ab61157b3 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90VectorWriter.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90VectorWriter.java @@ -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());