From ffc37b5f40278ff6b736fb2aeaa407171bd103da Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 10 Jan 2025 09:55:24 +0100 Subject: BS: Randomize elements and queries --- BS/baselines/cpu/bs_omp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BS/baselines') 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]; } } -- cgit v1.2.3