blob: 2df6c50a50e28e60de654a63579af4ec0e6cbbf7 [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
Harald Weltebed35df2011-11-02 13:06:18 +010023unsigned long int lookup(unsigned char *k, unsigned long int length,
24 unsigned long int level);
jjakoc49cb302004-12-30 16:40:17 +000025
Harald Weltebed35df2011-11-02 13:06:18 +010026#endif /* !_LOOKUP_H */