From 333cd6f25fba88b47e10686804a3b49bdc7ae913 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Thu, 5 Nov 2015 14:13:41 -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); } };