Skip to content

Commit

Permalink
Fix the createMessageId function in utility module
Browse files Browse the repository at this point in the history
  • Loading branch information
enricostara committed Sep 29, 2014
1 parent bd676cb commit 15a0ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ exports.Logger = require('./logger');
// Create a message ID starting from local time
function createMessageId() {
var time = new BigInteger(new Date().getTime().toString());
time = time.divide(new BigInteger(1000..toString()));
time = time.divide(new BigInteger((1000).toString()));
return time.shiftLeft(32).toString();
}

0 comments on commit 15a0ae2

Please sign in to comment.