From 6f3c772939463c97a4a8a8371db42b8f4b181c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 19 Feb 2019 02:31:35 +0100 Subject: No idea, to tired. --- hash.c | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 hash.c (limited to 'hash.c') diff --git a/hash.c b/hash.c deleted file mode 100644 index 47775b59..00000000 --- a/hash.c +++ /dev/null @@ -1,15 +0,0 @@ -#include "hash.h" - -/* - * http://www.cse.yorku.ca/~oz/hash.html - * djb2 from above url. - */ -unsigned long hash(char* str) { - unsigned long hash = 5381; - int c; - - while ( (c = *str++) ) - hash = ((hash << 5) + hash) + c; - - return hash; -} -- cgit v1.2.3