This commit is contained in:
Thies 2018-07-19 13:42:46 +02:00
parent 408254cf5c
commit 8c33dc43b3
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
package de.Thiesyy.MelcryptJavaAPI.Util;
import java.io.File;
import java.security.SecureRandom;
import java.util.Random;
@ -14,7 +15,7 @@ public static String generateKey() {
String x = "";
for(int y = 0; y != 8; y++) {
int z;
z = (int) ((new Random().nextInt(10)*4+new SecureRandom().nextInt(10)+System.currentTimeMillis()+new Random().nextInt(10))%10);
z = (int) ((new File(".").getUsableSpace() +new SecureRandom().nextInt(24)*4+new SecureRandom().nextInt(10)+System.currentTimeMillis()+new SecureRandom().nextInt())%10);
if(z==0)z=3;
x+=z;
}