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