Prevent dot in the first position again

This commit is contained in:
vvb2060 2021-02-22 00:20:59 +08:00 committed by John Wu
parent 0a6140c6eb
commit 4950020635
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ object HideAPK {
}
if (!builder.contains('.')) {
// Pick a random index and set it as dot
val idx = random.nextInt(len - 1)
builder[idx] = '.'
val idx = random.nextInt(len - 2)
builder[idx + 1] = '.'
}
return builder.toString()
}