Skip to content

Commit

Permalink
Merge f3ef163 into 89c048a
Browse files Browse the repository at this point in the history
  • Loading branch information
reklatsmasters committed Dec 15, 2018
2 parents 89c048a + f3ef163 commit ae79b34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/util.js
@@ -1,6 +1,6 @@
'use strict';

const crc = require('crc').crc32;
const crc = require('turbo-crc32/crc32');

module.exports = {

Expand Down Expand Up @@ -32,6 +32,6 @@ module.exports = {
},

hash(sess) {
return crc(JSON.stringify(sess));
return crc(JSON.stringify(sess)) >> 0; // eslint-disable-line no-bitwise
},
};
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -27,9 +27,9 @@
},
"license": "MIT",
"dependencies": {
"crc": "^3.4.4",
"debug": "^3.1.0",
"is-type-of": "^1.0.0",
"turbo-crc32": "^1.0.1",
"uid-safe": "^2.1.3"
},
"engines": {
Expand Down

0 comments on commit ae79b34

Please sign in to comment.