Skip to content
Browse files

Updated tail rotation constant to match r136 of MurmurHash3.cpp [Iden…

  • Loading branch information...
1 parent 23dc2e7 commit 979dae478bb9fb02d198c53f6a716813fe83ae9e @garycourt garycourt committed Mar 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 murmurhash3_gc.js
View
2 murmurhash3_gc.js
@@ -47,7 +47,7 @@ function murmurhash3_32_gc(key, seed) {
case 1: k1 ^= (key.charCodeAt(i) & 0xff);
k1 = (((k1 & 0xffff) * c1) + ((((k1 >>> 16) * c1) & 0xffff) << 16)) & 0xffffffff;
- k1 = (k1 << 16) | (k1 >>> 16);
+ k1 = (k1 << 15) | (k1 >>> 17);
k1 = (((k1 & 0xffff) * c2) + ((((k1 >>> 16) * c2) & 0xffff) << 16)) & 0xffffffff;
h1 ^= k1;
}

0 comments on commit 979dae4

Please sign in to comment.
Something went wrong with that request. Please try again.