Skip to content

Commit b9913b6

Browse files
committed
fix ci
1 parent fe6820b commit b9913b6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/core/algorithm/ivf_rabitq/ivf_rabitq_streamer_test.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ namespace {
5959
void FillTestVector(size_t seed, NumericalVector<float> *vec) {
6060
ASSERT_NE(nullptr, vec);
6161
for (size_t j = 0; j < vec->dimension(); ++j) {
62-
(*vec)[j] = static_cast<float>(((seed + 3) * (j + 5)) % 97 + 1) / 97.0f;
62+
size_t value = (seed + 1) * 1103515245ULL + (j + 1) * 12345ULL +
63+
(seed + 17) * (j + 31);
64+
value ^= (value >> 11);
65+
(*vec)[j] = static_cast<float>(value % 1000003ULL) / 1000003.0f;
6366
}
6467
}
6568

0 commit comments

Comments
 (0)