mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Немножко оптимизирован алгоритм генерации dictonary.
This commit is contained in:
parent
3923251fd2
commit
af88a02a52
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
|||
import java.util.List;
|
||||
|
||||
public class ProguardConf {
|
||||
private static final String chars = "1aAbBcC2dDeEfF3gGhHiI4jJkKl5mMnNoO6pPqQrR7sStT8uUvV9wWxX0yYzZ";
|
||||
private static final char[] chars = "1aAbBcC2dDeEfF3gGhHiI4jJkKl5mMnNoO6pPqQrR7sStT8uUvV9wWxX0yYzZ".toCharArray();
|
||||
|
||||
public static final String[] JAVA9_OPTS = new String[] {
|
||||
"-libraryjars '<java.home>/jmods/'"
|
||||
|
@ -35,7 +35,7 @@ private static String generateString(SecureRandom rand, String lowString, String
|
|||
sb.append(rand.nextBoolean() ? lowString.charAt(i) : upString.charAt(i));
|
||||
}
|
||||
int toI = il - lowString.length();
|
||||
for (int i = 0; i < toI; i++) sb.append(chars.charAt(rand.nextInt(chars.length())));
|
||||
for (int i = 0; i < toI; i++) sb.append(chars[rand.nextInt(chars.length)]);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue