mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
[reality] enhanced number of shortIDs
This commit is contained in:
@@ -136,9 +136,9 @@ class RandomUtil {
|
||||
}
|
||||
|
||||
static randomShortId() {
|
||||
let shortIds = ['','','',''];
|
||||
for (var ii = 0; ii < 4; ii++) {
|
||||
for (var jj = 0; jj < this.randomInt(8); jj++){
|
||||
let shortIds = new Array(24).fill('');
|
||||
for (var ii = 0; ii < 24; ii++) {
|
||||
for (var jj = 0; jj < this.randomInt(16); jj++){
|
||||
let randomNum = this.randomInt(256);
|
||||
shortIds[ii] += ('0' + randomNum.toString(16)).slice(-2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user