package gash

// a collection of various hash function implementations.

// a simple djb2 implementation
func Djb2(s string) int {
    hash := 5381
    for _, c := range s {
        hash += (hash * 33) + int(c)
    }

    return hash
}

package gash

// a collection of various hash function implementations.

// a simple djb2 implementation
func Djb2(s string) int {
    hash := 5381
    for c := range s {
        hash += (hash * 33) + c
    }

    return hash
}

--- 
+++ 
@@ -5,8 +5,8 @@
 // a simple djb2 implementation
 func Djb2(s string) int {
     hash := 5381
-    for c := range s {
-        hash += (hash * 33) + c
+    for _, c := range s {
+        hash += (hash * 33) + int(c)
     }
 
     return hash
Fix hash function to actually hash by character value
