From 6d4fa86831153f7e098e6a24d6f353cd05993154 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Fri, 20 Nov 2015 14:40:35 -0600 Subject: [PATCH] Converts constants in RandomUtil to hex. --- modules/util/RandomUtil.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/util/RandomUtil.js b/modules/util/RandomUtil.js index ba888b020..379480e8a 100644 --- a/modules/util/RandomUtil.js +++ b/modules/util/RandomUtil.js @@ -17,20 +17,20 @@ var RandomUtil = { /** * Generates hex number with length 4 */ - random4digitsHex: function() { - return rangeRandomHex(4096, 65535); + random4digitsHex: function () { + return rangeRandomHex(0x1000, 0xFFFF); }, /** * Generates hex number with length 8 */ - random8digitsHex: function() { - return rangeRandomHex(268435456, 4294967295); + random8digitsHex: function () { + return rangeRandomHex(0x10000000, 0xFFFFFFFF); }, /** * Generates hex number with length 12 */ - random12digitsHex: function() { - return rangeRandomHex(17592186044416, 281474976710655); + random12digitsHex: function () { + return rangeRandomHex(0x100000000000, 0xFFFFFFFFFFFF); } };