summaryrefslogtreecommitdiffstats
path: root/generic/tclHash.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-02-10 16:29:49 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-02-10 16:29:49 (GMT)
commit25174c675ed97c5219e2e92570ee0760a7081d0f (patch)
tree8987de7ab1b1887160efec0fecffcc187da51147 /generic/tclHash.c
parent4b0dfd608991970784e6307be9a228fdc90a3a7c (diff)
downloadtcl-25174c675ed97c5219e2e92570ee0760a7081d0f.zip
tcl-25174c675ed97c5219e2e92570ee0760a7081d0f.tar.gz
tcl-25174c675ed97c5219e2e92570ee0760a7081d0f.tar.bz2
Forgot the magic bias values. FNV is wildly magical...
Diffstat (limited to 'generic/tclHash.c')
-rw-r--r--generic/tclHash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclHash.c b/generic/tclHash.c
index 9824afd..47d8fba 100644
--- a/generic/tclHash.c
+++ b/generic/tclHash.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclHash.c,v 1.41 2010/02/09 22:39:11 dkf Exp $
+ * RCS: @(#) $Id: tclHash.c,v 1.42 2010/02/10 16:29:49 dkf Exp $
*/
#include "tclInt.h"
@@ -872,7 +872,7 @@ HashStringKey(
void *keyPtr) /* Key from which to compute hash value. */
{
const unsigned char *string = keyPtr;
- unsigned result = 0;
+ unsigned result = 0x811c9dc5;
unsigned c;
/*