diff --git a/snippets/sdbm-hash.md b/snippets/sdbm-hash.md deleted file mode 100644 index 8f54a20f5..000000000 --- a/snippets/sdbm-hash.md +++ /dev/null @@ -1,13 +0,0 @@ - -This function implements the **sdbm** hash-algorithm. -It uses the charCodeAt-methode and the shift-operator. - -``` js -function sdbm(s) { - var hashCode = 0; - for (var i = 0; i < s.length; i++) { - hashCode = s.charCodeAt(i) + (hashCode << 6) + (hashCode << 16) - hashCode; - } - return hashCode; -} -``` \ No newline at end of file