From af88a02a526b555b0b649d5100e6220afb0efcbc Mon Sep 17 00:00:00 2001 From: Zaxar163 Date: Thu, 28 Nov 2019 17:42:45 +0100 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=9D=D0=B5=D0=BC=D0=BD=D0=BE=D0=B6?= =?UTF-8?q?=D0=BA=D0=BE=20=D0=BE=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=20=D0=B0=D0=BB=D0=B3=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D1=82=D0=BC=20=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8=20dictonary.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/pro/gravit/launchserver/binary/ProguardConf.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/ProguardConf.java b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/ProguardConf.java index ff9e3277..d9eb81ee 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/ProguardConf.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/ProguardConf.java @@ -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 '/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(); }