/* $Id: hashb.c 616 2005-08-19 20:11:01Z bruce $ */ #include #include #include "common.h" adt_hash_t adt_hashb(const unsigned char* data, unsigned long len) { adt_hash_t h = 0x1505; while (len--) h = (h + (h << 5)) ^ *data++; return h; }