[reality] enhanced number of shortIDs

This commit is contained in:
Alireza Ahmadi
2024-02-16 12:10:26 +01:00
parent 8041950c29
commit 9b5379c0e7

View File

@@ -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)
}