private static byte[] generateBytes(int length) {
        byte[] bytes = new byte[length];
        RANDOM.nextBytes(bytes);
        return bytes;
    }
Generates the given number of random bytes.

@param length
    The number of random bytes to generate.

@return
    A new array of exactly the given number of random bytes.
extensions/guacamole-auth-totp/src/main/java/org/apache/guacamole/auth/totp/user/UserTOTPKey.java