debian/rules: Use `git' potty wrapper.
[qmail] / cdb_hash.c
CommitLineData
2117e02e
MW
1#include "cdb.h"
2
3uint32 cdb_hash(buf,len)
4unsigned char *buf;
5unsigned int len;
6{
7 uint32 h;
8
9 h = 5381;
10 while (len) {
11 --len;
12 h += (h << 5);
13 h ^= (uint32) *buf++;
14 }
15 return h;
16}