diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-09 09:37:05 +0300 |
|---|---|---|
| committer | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-09 09:37:05 +0300 |
| commit | cedc7f0fb8b30009a9526053be3dc3857af8bdcb (patch) | |
| tree | 83cbdbdfd314b0c313682e074966d1fac265eb15 /web/assets/js/model | |
| parent | 64fa0e97a30eb8f21b37f358b6382abcb4e4d9f2 (diff) | |
chore: refactoring `RandomUtil` class
now we use window.crypto.getRandomValues to generate random values.
Diffstat (limited to 'web/assets/js/model')
| -rw-r--r-- | web/assets/js/model/inbound.js | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
