From e798e61c06db655e867613301b1629fb13c7f326 Mon Sep 17 00:00:00 2001 From: hniksic Date: Sat, 17 Nov 2001 10:03:57 -0800 Subject: [PATCH] [svn] Minor doc addition. --- src/hash.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hash.c b/src/hash.c index 970b274b..ecfc96dd 100644 --- a/src/hash.c +++ b/src/hash.c @@ -156,6 +156,11 @@ struct hash_table { #define LOOP_NON_EMPTY(mp, mappings, size) \ for (; !EMPTY_MAPPING_P (mp); mp = NEXT_MAPPING (mp, mappings, size)) +/* #### We might want to multiply with the "golden ratio" here to get + better randomness for keys that do not result from a good hash + function. This is currently not a problem in Wget because we only + use the string hash tables. */ + #define HASH_POSITION(ht, key) (ht->hash_function (key) % ht->size) /* Find a prime near, but greather than or equal to SIZE. */ -- 2.39.2