summaryrefslogtreecommitdiff
path: root/BS/baselines
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-01-10 09:55:24 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-01-10 09:55:24 +0100
commitffc37b5f40278ff6b736fb2aeaa407171bd103da (patch)
tree3d7cde4dd652a293de74c45beb94af8309a4fb04 /BS/baselines
parentb5b95dad5e2d80f06932fbe97e2c87f5ba4d9a5b (diff)
BS: Randomize elements and queries
Diffstat (limited to 'BS/baselines')
-rw-r--r--BS/baselines/cpu/bs_omp.c2
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];
}
}