summaryrefslogtreecommitdiff
path: root/tests/random_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/random_entry.c')
-rw-r--r--tests/random_entry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/random_entry.c b/tests/random_entry.c
index 747b566..863c32c 100644
--- a/tests/random_entry.c
+++ b/tests/random_entry.c
@@ -29,8 +29,8 @@
#include <string.h>
#include <assert.h>
#include "hash_table.h"
-#include "fnv_hash.h"
+/* Also doubles as hash function. */
static uint32_t
key_value(const void *key)
{
@@ -58,12 +58,12 @@ main(int argc, char **argv)
uint32_t keys[size];
uint32_t i, random_value;
- ht = hash_table_create(uint32_t_key_equals);
+ ht = hash_table_create(key_value, uint32_t_key_equals);
for (i = 0; i < size; i++) {
keys[i] = i;
- hash_table_insert(ht, i, keys + i, NULL);
+ hash_table_insert(ht, keys + i, NULL);
}
/* Test the no-predicate case. */