r5286 dsilvers - /trunk/netsurf/utils/hashtable.c

netsurf at semichrome.net netsurf at semichrome.net
Mon Sep 8 16:23:34 BST 2008


Author: dsilvers
Date: Mon Sep  8 10:23:34 2008
New Revision: 5286

URL: http://source.netsurf-browser.org?rev=5286&view=rev
Log:
Ensure we actually use the FNV offset basis rather than the prime, for initialising the hash

Modified:
    trunk/netsurf/utils/hashtable.c

Modified: trunk/netsurf/utils/hashtable.c
URL: http://source.netsurf-browser.org/trunk/netsurf/utils/hashtable.c?rev=5286&r1=5285&r2=5286&view=diff
==============================================================================
--- trunk/netsurf/utils/hashtable.c (original)
+++ trunk/netsurf/utils/hashtable.c Mon Sep  8 10:23:34 2008
@@ -54,7 +54,7 @@
 
 static inline unsigned int hash_string_fnv(const char *datum, unsigned int *len)
 {
-	unsigned int z = 0x01000193;
+	unsigned int z = 0x811c9dc5;
 	const char *start = datum;
 	*len = 0;
 




More information about the netsurf-commits mailing list