From 1cc727239d4a1217579ef22178437cac46ab51dd Mon Sep 17 00:00:00 2001 From: Gravit Date: Tue, 12 Mar 2019 16:23:36 +0700 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20=D0=90=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=20=D1=81=D0=BB=D0=BE=D0=B2=D0=B0=D1=80=D1=8F=20Pro?= =?UTF-8?q?Guard=20=D0=BD=D0=B0=20=D0=BE=D1=81=D0=BD=D0=BE=D0=B2=D0=B5=20p?= =?UTF-8?q?rojectName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gravit/launchserver/binary/ProguardConf.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/binary/ProguardConf.java b/LaunchServer/src/main/java/ru/gravit/launchserver/binary/ProguardConf.java index add2373b..6853ee48 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/binary/ProguardConf.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/binary/ProguardConf.java @@ -16,9 +16,12 @@ public class ProguardConf { private static final String charsFirst = "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ"; private static final String chars = "1aAbBcC2dDeEfF3gGhHiI4jJkKl5mMnNoO6pPqQrR7sStT8uUvV9wWxX0yYzZ"; - private static String generateString(SecureRandom rand, int il) { - StringBuilder sb = new StringBuilder(il); - sb.append(charsFirst.charAt(rand.nextInt(charsFirst.length()))); + private static String generateString(SecureRandom rand, String lowString, String upString, int il) { + StringBuilder sb = new StringBuilder(il + lowString.length()); + for(int i = 0;i