Set random seed for IVFFLAT_BENCH [skip ci]

This commit is contained in:
Andrew Kane
2025-06-18 10:57:18 -07:00
parent 799cfebf70
commit bf28ed8176
2 changed files with 6 additions and 0 deletions

View File

@@ -1023,6 +1023,10 @@ ivfflatbuild(Relation heap, Relation index, IndexInfo *indexInfo)
IndexBuildResult *result;
IvfflatBuildState buildstate;
#ifdef IVFFLAT_BENCH
SeedRandom(42);
#endif
BuildIndex(heap, index, indexInfo, &buildstate, MAIN_FORKNUM);
result = (IndexBuildResult *) palloc(sizeof(IndexBuildResult));