#358 Make RandomString static & generate all rand. strings with it
- Remove dubious random String generator on HashUtils - Make further hash classes use HashUtils
This commit is contained in:
@@ -41,7 +41,7 @@ public class CaptchaCommand extends PlayerCommand {
|
||||
|
||||
if (Settings.useCaptcha && !captcha.equals(plugin.cap.get(playerNameLowerCase))) {
|
||||
plugin.cap.remove(playerNameLowerCase);
|
||||
String randStr = new RandomString(Settings.captchaLength).nextString();
|
||||
String randStr = RandomString.generate(Settings.captchaLength);
|
||||
plugin.cap.put(playerNameLowerCase, randStr);
|
||||
commandService.send(player, MessageKey.CAPTCHA_WRONG_ERROR, plugin.cap.get(playerNameLowerCase));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user