@Override
    public String getToken() {
        byte[] bytes = new byte[32];
        secureRandom.nextBytes(bytes);
        
        return BaseEncoding.base16().encode(bytes);
    }
Instance of SecureRandom for generating the auth token.
guacamole/src/main/java/org/apache/guacamole/rest/auth/SecureRandomAuthTokenGenerator.java