From 78960b1461a8fb184de4ffddf2d2ec4df729fb05 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 4 Jul 2024 16:46:24 -0400 Subject: Randomize hash key on startup and rename to TOMO_HASH_KEY. --- structs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'structs.c') diff --git a/structs.c b/structs.c index 51f69287..22965b72 100644 --- a/structs.c +++ b/structs.c @@ -109,7 +109,7 @@ static CORD compile_hash_method(env_t *env, ast_t *ast) } hash_func = CORD_all(hash_func, "};\n" "uint32_t hash;\n" - "halfsiphash(&field_hashes, sizeof(field_hashes), TOMO_HASH_VECTOR, (uint8_t*)&hash, sizeof(hash));\n" + "halfsiphash(&field_hashes, sizeof(field_hashes), TOMO_HASH_KEY, (uint8_t*)&hash, sizeof(hash));\n" "return hash;\n}\n"); return hash_func; } -- cgit v1.2.3