Class SystemRandomSecure

java.lang.Object
io.clonecloudstore.common.standard.system.SystemRandomSecure

public final class SystemRandomSecure extends Object
Improve Random generation
  • Method Details

    • getSecureRandom

      public static SecureRandom getSecureRandom()
    • getSecureRandomSingleton

      public static SecureRandom 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