[benchmark-set] Remove use of rand() inside benchmark

This commit is contained in:
Behdad Esfahbod 2022-05-24 16:34:04 -06:00
parent efa2a5796e
commit ce5435a862
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ static void BM_SetInsert_1000(benchmark::State& state) {
for (auto _ : state) {
hb_set_t* data = hb_set_copy(original);
for (int i = 0; i < 1000; i++) {
hb_set_add(data, rand() % max_value);
hb_set_add(data, i * 2654435761u % max_value);
}
hb_set_destroy(data);
}