This commit is contained in:
Redkale
2018-05-17 17:35:47 +08:00
parent 6f98b44471
commit a5f21a99d8

View File

@@ -144,7 +144,9 @@ public final class Utility {
*/
public static SecureRandom createRandom() {
SecureRandom random = new SecureRandom();
random.setSeed(SecureRandom.getSeed(32));
byte[] bs = new byte[16];
random.nextBytes(bs);
random.setSeed(bs);
return random;
}