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
parent 81ab1d6ab6
commit 5972b495ba
No known key found for this signature in database
GPG Key ID: 817AE1DD322D7ECA
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";