diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-09-24 15:34:06 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-09-27 10:48:28 +0930 |
commit | 3258cf3f11bf7c68a2e69e1808c4551cc899725a (patch) | |
tree | 4936334d88f8e159c0412f8f3370f3ab07c0817d /lib/tdb/common/tdb_private.h | |
parent | 7afa7b8a848a6afdb586768168c95b566b7b912f (diff) | |
download | samba-3258cf3f11bf7c68a2e69e1808c4551cc899725a.tar.gz samba-3258cf3f11bf7c68a2e69e1808c4551cc899725a.tar.bz2 samba-3258cf3f11bf7c68a2e69e1808c4551cc899725a.zip |
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>
Diffstat (limited to 'lib/tdb/common/tdb_private.h')
-rw-r--r-- | lib/tdb/common/tdb_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tdb/common/tdb_private.h b/lib/tdb/common/tdb_private.h index eccd6880ef..fe3603c104 100644 --- a/lib/tdb/common/tdb_private.h +++ b/lib/tdb/common/tdb_private.h @@ -272,3 +272,4 @@ bool tdb_write_all(int fd, const void *buf, size_t count); int tdb_transaction_recover(struct tdb_context *tdb); void tdb_header_hash(struct tdb_context *tdb, uint32_t *magic1_hash, uint32_t *magic2_hash); +unsigned int tdb_old_hash(TDB_DATA *key); |