Info Call to Random API

Description

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

Recommendation

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 java.security.SecureRandom class.

Technical details

Method com.microsoft.appcenter.utils.UUIDUtils.initFailOver() calling method java.util.Random.<init>()


    private static declared_synchronized void initFailOver(SecurityException p3)
    {
        try {
            if (com.microsoft.appcenter.utils.UUIDUtils.sRandom == null) {
                com.microsoft.appcenter.utils.UUIDUtils.sRandom = new java.util.Random();
                com.microsoft.appcenter.utils.AppCenterLog.error("AppCenter", "UUID.randomUUID failed, using Random as fallback", p3);
            }
        } catch (String v0_4) {
            throw v0_4;
        }
        return;
    }

Method com.microsoft.appcenter.http.HttpClientRetryer.<init>() calling method java.util.Random.<init>()


    HttpClientRetryer(com.microsoft.appcenter.http.HttpClient p2, android.os.Handler p3)
    {
        super(p2);
        super.mRandom = new java.util.Random();
        super.mHandler = p3;
        return;
    }