Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Converts constants in RandomUtil to hex.

paweldomas333cd6f25fba
diff --git a/modules/util/RandomUtil.js b/modules/util/RandomUtil.js
index ba888b0201..379480e8a4 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);
}
};