From 05c893b35c881d1bb67dcc533a804719b5881354 Mon Sep 17 00:00:00 2001 From: Fuzzlemann Date: Tue, 1 Aug 2017 20:38:43 +0200 Subject: [PATCH] Replace UUID.randomUUID() to RandomStringUtils.random(size) --- Plan/src/test/java/utils/RandomData.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plan/src/test/java/utils/RandomData.java b/Plan/src/test/java/utils/RandomData.java index 82cfd194a..5646c7256 100644 --- a/Plan/src/test/java/utils/RandomData.java +++ b/Plan/src/test/java/utils/RandomData.java @@ -9,6 +9,7 @@ import main.java.com.djrapitops.plan.data.handling.info.InfoType; import main.java.com.djrapitops.plan.database.tables.GMTimesTable; import main.java.com.djrapitops.plan.utilities.PassEncryptUtil; import main.java.com.djrapitops.plan.utilities.analysis.Point; +import org.apache.commons.lang.RandomStringUtils; import java.util.ArrayList; import java.util.List; @@ -34,7 +35,7 @@ public class RandomData { * Random enough. */ public static String randomString(int size) { - return UUID.randomUUID().toString().replaceAll("-", "").substring(0, size); + return RandomStringUtils.random(size); } public static List randomWebUsers() throws PassEncryptUtil.CannotPerformOperationException {