fix: MORE FIXIES FOR NBOT
This commit is contained in:
parent
285513a332
commit
6a93cf8aae
1 changed files with 3 additions and 3 deletions
|
@ -168,9 +168,9 @@ public class BotValidationUtilities {
|
|||
|
||||
byte[] hash = md.digest();
|
||||
|
||||
ByteBuffer buffer = ByteBuffer.wrap(hash, 0, 5);
|
||||
int bigInt = Math.abs(buffer.getInt());
|
||||
String stringHash = Integer.toString(bigInt, 36);
|
||||
ByteBuffer buffer = ByteBuffer.wrap(hash, 0, 4);
|
||||
long bigInt = (buffer.getInt() & 0xFFFFFFFFL);;
|
||||
String stringHash = Long.toString(bigInt, 36);
|
||||
|
||||
final String[] restArguments = Arrays.copyOfRange(arguments, 1, arguments.length);
|
||||
|
||||
|
|
Loading…
Reference in a new issue