]> sjero.net Git - wget/commitdiff
[svn] Minor doc addition.
authorhniksic <devnull@localhost>
Sat, 17 Nov 2001 18:03:57 +0000 (10:03 -0800)
committerhniksic <devnull@localhost>
Sat, 17 Nov 2001 18:03:57 +0000 (10:03 -0800)
src/hash.c

index 970b274beada4dc70a9a0e827482ff61eb6b80e3..ecfc96dd819a9c442a89d7826d3af117993705c1 100644 (file)
@@ -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. */