示例#1
0
 /**
  * Generate securely some amount of bytes
  *
  * @param len bytes count
  * @return random bytes
  */
 public static byte[] randomBytes(int len) {
   return random.randomBytes(len);
 }
示例#2
0
 public static void nextBytes(byte[] data) {
   random.nextBytes(data);
 }
示例#3
0
 /**
  * Generate securely random int
  *
  * @param maxValue maximum value of int
  * @return random value
  */
 public static int randomInt(int maxValue) {
   return random.randomInt(maxValue);
 }