mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-17 12:44:41 +03:00
chore: refactoring RandomUtil class
now we use window.crypto.getRandomValues to generate random values.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user