LUCENE-10421: use Constant instead of relying upon timestamp (#686)

This commit is contained in:
Robert Muir 2022-02-25 00:38:13 -05:00 committed by GitHub
parent 4af516a149
commit 466278e149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ import org.apache.lucene.util.hnsw.NeighborQueue;
public final class Lucene90HnswGraphBuilder {
/** Default random seed for level generation * */
private static final long DEFAULT_RAND_SEED = System.currentTimeMillis();
private static final long DEFAULT_RAND_SEED = 42;
/** A name for the HNSW component for the info-stream * */
public static final String HNSW_COMPONENT = "HNSW";

View File

@ -36,7 +36,7 @@ import org.apache.lucene.util.InfoStream;
public final class HnswGraphBuilder {
/** Default random seed for level generation * */
private static final long DEFAULT_RAND_SEED = System.currentTimeMillis();
private static final long DEFAULT_RAND_SEED = 42;
/** A name for the HNSW component for the info-stream * */
public static final String HNSW_COMPONENT = "HNSW";