summaryrefslogtreecommitdiff
path: root/BS/host
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-05-14 14:28:38 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-05-14 14:28:38 +0200
commitbfd65fdea6deb6f25dac527161e8318f4658e2a8 (patch)
treed892983ba11784bf4f9b5477fe221a00c651edc0 /BS/host
parent88f100f61c6be10c1c917dbe4f95afd5aa484532 (diff)
Revert "BS: Randomize elements and queries"
This reverts commit ffc37b5f40278ff6b736fb2aeaa407171bd103da. Restores the verification of the DPU implementation
Diffstat (limited to 'BS/host')
-rw-r--r--BS/host/app.c6
1 files changed, 2 insertions, 4 deletions
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;
}
}