From 15a0ae2db90b44f6909fc8928a18d49e6a8f11a4 Mon Sep 17 00:00:00 2001 From: Enrico Stara Date: Mon, 29 Sep 2014 12:35:32 +0200 Subject: [PATCH] Fix the createMessageId function in utility module --- lib/util/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/index.js b/lib/util/index.js index ae129e2..fc5a3d3 100644 --- a/lib/util/index.js +++ b/lib/util/index.js @@ -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(); } \ No newline at end of file