diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2010-02-10 16:29:49 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2010-02-10 16:29:49 (GMT) |
| commit | e9d2c2d27e3f4cc616452c78e29bbff918b6ca53 (patch) | |
| tree | 8987de7ab1b1887160efec0fecffcc187da51147 /generic/tclHash.c | |
| parent | f0e2af220d49ed717c486045689804ee1b44055e (diff) | |
| download | tcl-e9d2c2d27e3f4cc616452c78e29bbff918b6ca53.zip tcl-e9d2c2d27e3f4cc616452c78e29bbff918b6ca53.tar.gz tcl-e9d2c2d27e3f4cc616452c78e29bbff918b6ca53.tar.bz2 | |
Forgot the magic bias values. FNV is wildly magical...
Diffstat (limited to 'generic/tclHash.c')
| -rw-r--r-- | generic/tclHash.c | 4 |
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; /* |
