Delete sdbm-hash.md

This commit is contained in:
Christian Bender
2017-12-25 15:36:25 +01:00
committed by GitHub
parent 8490187093
commit fa5769fa20

View File

@ -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;
}
```