blob: 18b94c13bb11ee65e386201df08598633e3583bc [file] [log] [blame]
jjakoc49cb302004-12-30 16:40:17 +00001/*
2 * Hash lookup function.
3 * Copyright (C) 2003, 2004 Mondru AB.
4 *
5 * The contents of this file may be used under the terms of the GNU
6 * General Public License Version 2, provided that the above copyright
7 * notice and this permission notice is included in all copies or
8 * substantial portions of the software.
9 *
10 */
11
12/**
13 * lookup()
14 * Generates a 32 bit hash.
15 * Based on public domain code by Bob Jenkins
16 * It should be one of the best hash functions around in terms of both
17 * statistical properties and speed. It is NOT recommended for cryptographic
18 * purposes.
19 **/
20
21#ifndef _LOOKUP_H
22#define _LOOKUP_H
23unsigned long int lookup( unsigned char *k, unsigned long int length, unsigned long int level);
24
25#endif /* !_LOOKUP_H */