From cedc7f0fb8b30009a9526053be3dc3857af8bdcb Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Sun, 9 Mar 2025 06:37:05 +0000 Subject: chore: refactoring `RandomUtil` class now we use window.crypto.getRandomValues to generate random values. --- web/assets/js/model/inbound.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/assets/js/model/inbound.js') diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index 5c3235e1..2a5fb6d6 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -1050,7 +1050,7 @@ class Allocate extends XrayCommonClass { class Inbound extends XrayCommonClass { constructor( - port = RandomUtil.randomIntRange(10000, 60000), + port = RandomUtil.randomInteger(10000, 60000), listen = '', protocol = Protocols.VLESS, settings = null, @@ -1226,7 +1226,7 @@ class Inbound extends XrayCommonClass { } reset() { - this.port = RandomUtil.randomIntRange(10000, 60000); + this.port = RandomUtil.randomInteger(10000, 60000); this.listen = ''; this.protocol = Protocols.VMESS; this.settings = Inbound.Settings.getSettings(Protocols.VMESS); -- cgit v1.2.3