tdb: add Bob Jenkins lookup3 hash as helper hash.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 24 Sep 2010 06:04:06 +0000 (15:34 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Oct 2010 04:47:05 +0000 (15:17 +1030)
commit58c9d90c758aa7c062d84ab97f62947190526356
tree22ca00533a4745bebcfacba87f2a3fae23ce7bb5
parent7cda5507f90d7598d745a1acfc66c2afa73cd4b5
tdb: add Bob Jenkins lookup3 hash as helper hash.

This is a better hash than the default: shipping it with tdb makes it easy
for callers to use it as the hash by passing it to tdb_open_ex().

This version taken from CCAN and modified, which took it from
http://www.burtleburtle.net/bob/c/lookup3.c.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb/common/hash.c [new file with mode: 0644]
lib/tdb/common/open.c
lib/tdb/common/tdb_private.h
lib/tdb/configure.ac
lib/tdb/include/tdb.h