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