blob: 297d246184c9bb42ec31150240f09ad902f457b3 [file] [log] [blame]
#include "hash.h"
uint32_t hash(char *str)
{
uint32_t hash = 5381;
char c;
while (c = *str++)
{
hash = (hash << 5) + hash + c;
}
return hash;
}