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. --- builtins/c_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtins/c_string.c') diff --git a/builtins/c_string.c b/builtins/c_string.c index f74d6da2..3b258aad 100644 --- a/builtins/c_string.c +++ b/builtins/c_string.c @@ -38,7 +38,7 @@ public uint32_t CString$hash(const char **c_str) if (!*c_str) return 0; uint32_t hash; - halfsiphash(*c_str, strlen(*c_str), TOMO_HASH_VECTOR, (uint8_t*)&hash, sizeof(hash)); + halfsiphash(*c_str, strlen(*c_str), TOMO_HASH_KEY, (uint8_t*)&hash, sizeof(hash)); return hash; } -- cgit v1.2.3