Class SystemRandomSecure
java.lang.Object
io.clonecloudstore.common.standard.system.SystemRandomSecure
Improve Random generation
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]getRandom(int length) static SecureRandomstatic SecureRandom
-
Method Details
-
getSecureRandom
-
getSecureRandomSingleton
- Returns:
- a singleton instance instead of a new one
-
getRandom
public static byte[] getRandom(int length) - Parameters:
length- the length of rray- Returns:
- a byte array with random values
-