aboutsummaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c15
1 files changed, 0 insertions, 15 deletions
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;
-}