diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-06-21 12:41:39 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-06-29 08:32:59 +0200 |
| commit | 64792da0de8724bb85e9e3cf114c452995c24140 (patch) | |
| tree | c051f3e7a2d55de8a2632049c5cbf84d43c0c39c /src/ipcpd/unicast/pff/tests | |
| parent | b46359c11b879d610997eb1e9069e943e19c4244 (diff) | |
| download | ouroboros-64792da0de8724bb85e9e3cf114c452995c24140.tar.gz ouroboros-64792da0de8724bb85e9e3cf114c452995c24140.zip | |
ipcpd: Use hash_mix64 for pft keys
Drops the per-table hash_key flag and the local MD5 hash() helper.
The calc_key function now folds the key with hash_mix64
unconditionally. Simplifies pft_create, which no longer takes a bool.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/unicast/pff/tests')
| -rw-r--r-- | src/ipcpd/unicast/pff/tests/pft_test.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ipcpd/unicast/pff/tests/pft_test.c b/src/ipcpd/unicast/pff/tests/pft_test.c index 4962c241..20e73a94 100644 --- a/src/ipcpd/unicast/pff/tests/pft_test.c +++ b/src/ipcpd/unicast/pff/tests/pft_test.c @@ -38,15 +38,7 @@ int pft_test(int argc, (void) argc; (void) argv; - pft = pft_create(TBL_SIZE, true); - if (pft == NULL) { - printf("Failed to create.\n"); - return -1; - } - - pft_destroy(pft); - - pft = pft_create(TBL_SIZE, false); + pft = pft_create(TBL_SIZE); if (pft == NULL) { printf("Failed to create.\n"); return -1; |
