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)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 8 Oct 2010 01:58:18 +0000 (12:58 +1100)
commit88b490ef9f750e4a10e4e296ef8e904820a43ba5
treef9ab3a0e044fe909cf36efc7bcaec6ce79a7ce27
parent114127afb33b74621562131cffb4af342bec91fa
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