summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/benchmarks/eina/eina_bench_hash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/benchmarks/eina/eina_bench_hash.c b/src/benchmarks/eina/eina_bench_hash.c
index e0e9774504..33d1bba36a 100644
--- a/src/benchmarks/eina/eina_bench_hash.c
+++ b/src/benchmarks/eina/eina_bench_hash.c
@@ -353,9 +353,7 @@ eina_bench_lookup_djb2_inline(int request)
353 for (i = 0; i < (unsigned int)request; ++i) 353 for (i = 0; i < (unsigned int)request; ++i)
354 { 354 {
355 char tmp_key[10]; 355 char tmp_key[10];
356 int length = 6; 356 int length = eina_convert_itoa(rand() % request, tmp_key) + 1;
357
358 length = eina_convert_itoa(rand() % request, tmp_key) + 1;
359 357
360 elm = 358 elm =
361 eina_hash_find_by_hash(hash, tmp_key, length, 359 eina_hash_find_by_hash(hash, tmp_key, length,