Example #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);
 }
Example #2
0
 public static void nextBytes(byte[] data) {
   random.nextBytes(data);
 }
Example #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);
 }