From bfd65fdea6deb6f25dac527161e8318f4658e2a8 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 14 May 2025 14:28:38 +0200 Subject: Revert "BS: Randomize elements and queries" This reverts commit ffc37b5f40278ff6b736fb2aeaa407171bd103da. Restores the verification of the DPU implementation --- BS/host/app.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'BS/host/app.c') diff --git a/BS/host/app.c b/BS/host/app.c index 22ad81a..90d016f 100644 --- a/BS/host/app.c +++ b/BS/host/app.c @@ -43,14 +43,12 @@ void create_test_file(DTYPE *input, DTYPE *querys, uint64_t nr_elements, uint64_t nr_querys) { - srand(time(NULL)); - input[0] = 1; for (uint64_t i = 1; i < nr_elements; i++) { - input[i] = input[i - 1] + (rand() % 10) + 1; + input[i] = input[i - 1] + 1; } for (uint64_t i = 0; i < nr_querys; i++) { - querys[i] = input[rand() % nr_elements]; + querys[i] = i; } } -- cgit v1.2.3