From: hniksic Date: Sat, 17 Nov 2001 18:03:57 +0000 (-0800) Subject: [svn] Minor doc addition. X-Git-Tag: v1.13~2076 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=e798e61c06db655e867613301b1629fb13c7f326 [svn] Minor doc addition. --- 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. */