diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-07-04 16:46:24 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-07-04 16:46:24 -0400 |
| commit | 78960b1461a8fb184de4ffddf2d2ec4df729fb05 (patch) | |
| tree | f62f39c9d6b420c304bffba8143a41789980e68a /builtins/table.c | |
| parent | dfb7bb1984b555519851d084ac8b5f8e760c55ce (diff) | |
Randomize hash key on startup and rename to TOMO_HASH_KEY.
Diffstat (limited to 'builtins/table.c')
| -rw-r--r-- | builtins/table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtins/table.c b/builtins/table.c index 6b63be8d..6afca9ce 100644 --- a/builtins/table.c +++ b/builtins/table.c @@ -500,7 +500,7 @@ public uint32_t Table$hash(const table_t *t, const TypeInfo *type) default_hash, }; uint32_t hash; - halfsiphash(&components, sizeof(components), TOMO_HASH_VECTOR, (uint8_t*)&hash, sizeof(hash)); + halfsiphash(&components, sizeof(components), TOMO_HASH_KEY, (uint8_t*)&hash, sizeof(hash)); return hash; } |
