Info Call to Random API


List of all calls to methods that return pseudo-random values.


Do not seed Random with the current time because that value is more predictable to an attacker than the default seed.

The java.util.Random class must not be used either for security-critical applications or for protecting sensitive data. Use a more secure random number generator, such as the class.

Technical details

Method okhttp3.OkHttpClient.newWebSocket() calling method java.util.Random.<init>()

    public okhttp3.WebSocket newWebSocket(okhttp3.Request p8, okhttp3.WebSocketListener p9)
    { v6 = new;
        v6(p8, p9, new java.util.Random(), ((long) this.pingInterval));
        return v6;