aboutsummaryrefslogtreecommitdiff
path: root/builtins/text.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-07-04 16:46:24 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-07-04 16:46:24 -0400
commit78960b1461a8fb184de4ffddf2d2ec4df729fb05 (patch)
treef62f39c9d6b420c304bffba8143a41789980e68a /builtins/text.c
parentdfb7bb1984b555519851d084ac8b5f8e760c55ce (diff)
Randomize hash key on startup and rename to TOMO_HASH_KEY.
Diffstat (limited to 'builtins/text.c')
-rw-r--r--builtins/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtins/text.c b/builtins/text.c
index f39d42ee..666d5df0 100644
--- a/builtins/text.c
+++ b/builtins/text.c
@@ -123,7 +123,7 @@ public uint32_t Text$hash(const CORD *cord)
uint8_t *normalized = _normalize(*cord, buf, &norm_len);
uint32_t hash;
- halfsiphash(normalized, norm_len, TOMO_HASH_VECTOR, (uint8_t*)&hash, sizeof(hash));
+ halfsiphash(normalized, norm_len, TOMO_HASH_KEY, (uint8_t*)&hash, sizeof(hash));
if (normalized != buf) free(normalized);
return hash;
}