fix random ShortId
This commit is contained in:
@@ -36,8 +36,8 @@ const RandomUtil = {
|
||||
},
|
||||
randomShortId(): string[] {
|
||||
let shortIds = new Array(24).fill('')
|
||||
for (var ii = 0; ii < 24; ii++) {
|
||||
for (var jj = 0; jj < this.randomInt(8); jj++){
|
||||
for (var ii = 1; ii < 24; ii++) {
|
||||
for (var jj = 0; jj <= this.randomInt(7); jj++){
|
||||
let randomNum = this.randomInt(256)
|
||||
shortIds[ii] += ('0' + randomNum.toString(16)).slice(-2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user