diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-01-10 09:55:24 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-01-10 09:55:24 +0100 |
commit | ffc37b5f40278ff6b736fb2aeaa407171bd103da (patch) | |
tree | 3d7cde4dd652a293de74c45beb94af8309a4fb04 /BS/baselines | |
parent | b5b95dad5e2d80f06932fbe97e2c87f5ba4d9a5b (diff) |
BS: Randomize elements and queries
Diffstat (limited to 'BS/baselines')
-rw-r--r-- | BS/baselines/cpu/bs_omp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BS/baselines/cpu/bs_omp.c b/BS/baselines/cpu/bs_omp.c index 874299b..d79ede8 100644 --- a/BS/baselines/cpu/bs_omp.c +++ b/BS/baselines/cpu/bs_omp.c @@ -45,7 +45,7 @@ void create_test_file(DTYPE * input, uint64_t nr_elements, DTYPE * querys, uint for(uint64_t i = 0; i < n_querys; i++) { - querys[i] = input[rand() % (nr_elements - 2)]; + querys[i] = input[rand() % nr_elements]; } } |