summaryrefslogtreecommitdiff
path: root/BS/baselines
diff options
context:
space:
mode:
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];
}
}