summaryrefslogtreecommitdiff
path: root/lib/ds/plhash.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ds/plhash.c')
-rw-r--r--lib/ds/plhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ds/plhash.c b/lib/ds/plhash.c
index f02b5132..8cfce081 100644
--- a/lib/ds/plhash.c
+++ b/lib/ds/plhash.c
@@ -179,7 +179,7 @@ PL_HashTableDestroy(PLHashTable *ht)
/*
** Multiplicative hash, from Knuth 6.4.
*/
-#define GOLDEN_RATIO 0x9E3779B9U
+#define GOLDEN_RATIO 0x9E3779B9U /* 2/(1+sqrt(5))*(2^32) */
PR_IMPLEMENT(PLHashEntry **)
PL_HashTableRawLookup(PLHashTable *ht, PLHashNumber keyHash, const void *key)