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.google.android.gms.internal.ads.zztu.onAdClosed() calling method java.util.Random.<init>()


    public final void onAdClosed()
    {
        if (com.google.android.gms.internal.ads.zzud.zzlv()) {
            int v1_0 = ((Integer) com.google.android.gms.internal.ads.zzkb.zzik().zzd(com.google.android.gms.internal.ads.zznk.zzazg)).intValue();
            long v0_4 = ((Integer) com.google.android.gms.internal.ads.zzkb.zzik().zzd(com.google.android.gms.internal.ads.zznk.zzazh)).intValue();
            if ((v1_0 > 0) && (v0_4 >= 0)) {
                com.google.android.gms.internal.ads.zzakk.zzcrm.postDelayed(com.google.android.gms.internal.ads.zztv.zzboj, ((long) (new java.util.Random().nextInt((v0_4 + 1)) + v1_0)));
            } else {
                com.google.android.gms.ads.internal.zzbv.zzex().zzld();
            }
        }
        this.zzboi.onAdClosed();
        return;
    }

Method com.google.android.gms.internal.ads.zzcc.zzy() calling method java.util.Random.<init>()


    private static java.util.Random zzy()
    {
        if (com.google.android.gms.internal.ads.zzcc.zzpw == null) {
            if (com.google.android.gms.internal.ads.zzcc.zzpw == null) {
                com.google.android.gms.internal.ads.zzcc.zzpw = new java.util.Random();
            }
        }
        return com.google.android.gms.internal.ads.zzcc.zzpw;
    }

Method com.google.android.gms.internal.ads.zzkc.<init>() calling method java.util.Random.<init>()


    public zzkc()
    {
        this.mLock = new Object();
        this.zzasg = new java.util.Random();
        this.zzil();
        return;
    }

Method com.recoverimages.datarestorepicturecanfreeapp.MainActivity.onCreate() calling method java.util.Random.<init>()


    protected void onCreate(android.os.Bundle p4)
    {
        super.onCreate(p4);
        this.requestWindowFeature(1);
        this.getWindow().setFlags(1024, 1024);
        this.setContentView(2130968607);
        this.mAdView = ((com.google.android.gms.ads.AdView) this.findViewById(2131624092));
        this.MainLay = ((android.widget.RelativeLayout) this.findViewById(2131624120));
        this.mTextColor = this.getResColor(16842904);
        this.mBgColor = this.getResColor(16842836);
        this.mAccentColor = this.getResColor(2130772114);
        this.mTypefaceLight = android.graphics.Typeface.createFromAsset(this.getAssets(), "fonts/Roboto-Light.ttf");
        this.mTypefaceBold = android.graphics.Typeface.createFromAsset(this.getAssets(), "fonts/Roboto-Bold.ttf");
        com.recoverimages.datarestorepicturecanfreeapp.MainActivity.PKG = "gpaddy.com.restoreimage";
        this.mRandom = new java.util.Random();
        this.adRequest2 = new com.google.android.gms.ads.AdRequest$Builder().build();
        this.mAdView.loadAd(this.adRequest2);
        this.DotProgressbar = ((com.github.silvestrpredko.dotprogressbar.DotProgressBar) this.findViewById(2131624121));
        this.mInterstitialAd = new com.google.android.gms.ads.InterstitialAd(this);
        this.mInterstitialAd.setAdUnitId("ca-app-pub-6455078956974987/5085491364");
        this.mInterstitialAd.loadAd(this.adRequest2);
        this.icon_about = ((android.widget.ImageView) this.findViewById(2131624133));
        this.icon_more = ((android.widget.ImageView) this.findViewById(2131624135));
        this.icon_share = ((android.widget.ImageView) this.findViewById(2131624132));
        this.icon_rate = ((android.widget.ImageView) this.findViewById(2131624134));
        this.icon_setting = ((android.widget.ImageView) this.findViewById(2131624137));
        this.buttons_layout = ((android.widget.LinearLayout) this.findViewById(2131624131));
        this.buttons_layout1 = ((android.widget.LinearLayout) this.findViewById(2131624136));
        this.images_text_layout = ((android.widget.LinearLayout) this.findViewById(2131624128));
        this.images_layout = ((android.widget.LinearLayout) this.findViewById(2131624123));
        this.loadingPanel = ((android.widget.RelativeLayout) this.findViewById(2131624102));
        this.number_text = ((android.widget.TextView) this.findViewById(2131624138));
        this.show_text = ((android.widget.TextView) this.findViewById(2131624100));
        this.scan_icon = ((android.widget.ImageView) this.findViewById(2131624098));
        this.show_button = ((android.widget.Button) this.findViewById(2131624126));
        this.show_Quickbutton = ((android.widget.ImageView) this.findViewById(2131624124));
        this.tv1 = ((android.widget.TextView) this.findViewById(2131624130));
        this.tv2 = ((android.widget.TextView) this.findViewById(2131623954));
        com.recoverimages.datarestorepicturecanfreeapp.SessionManagement v0_1 = new com.recoverimages.datarestorepicturecanfreeapp.SessionManagement(this.getApplicationContext());
        this.number_text.setVisibility(0);
        if (!v0_1.isCheckedd()) {
            com.recoverimages.datarestorepicturecanfreeapp.MainActivity.RESTORE_DIR = new StringBuilder().append(android.os.Environment.getExternalStorageDirectory().toString()).append("/Restored Photos/").toString();
        } else {
            com.recoverimages.datarestorepicturecanfreeapp.MainActivity.RESTORE_DIR = v0_1.getPath();
        }
        return;
    }

Method com.cleveroad.androidmanimation.LoadingAnimationView.onDraw() calling method java.util.Random.<init>()


    public void onDraw(android.graphics.Canvas p4)
    {
        if (this.isInEditMode()) {
            if (this.random == null) {
                this.random = new java.util.Random();
            }
            this.updateAnimation(((float) p4.getWidth()), this.random.nextFloat());
        }
        p4.drawColor(this.bgColor);
        int v0 = 0;
        while (v0 < 4) {
            this.layers[v0].draw(p4);
            v0++;
        }
        this.yellowRectangle.draw(p4);
        return;
    }

Method com.google.android.gms.internal.ads.zzbk.zza() calling method java.security.SecureRandom.<init>()


    private static byte[] zza(byte[] p8, String p9, boolean p10)
    {
        byte[] v0_8;
        if (!p10) {
            v0_8 = 255;
        } else {
            v0_8 = 239;
        }
        if (p8.length > v0_8) {
            p8 = com.google.android.gms.internal.ads.zzbfi.zzb(com.google.android.gms.internal.ads.zzbk.zzc(4096));
        }
        byte[] v0_4;
        if (p8.length >= v0_8) {
            v0_4 = java.nio.ByteBuffer.allocate((v0_8 + 1)).put(((byte) p8.length)).put(p8).array();
        } else {
            com.google.android.gms.internal.ads.zzazx v1_6 = new byte[(v0_8 - p8.length)];
            new java.security.SecureRandom().nextBytes(v1_6);
            v0_4 = java.nio.ByteBuffer.allocate((v0_8 + 1)).put(((byte) p8.length)).put(p8).put(v1_6).array();
        }
        if (p10) {
            v0_4 = java.nio.ByteBuffer.allocate(256).put(com.google.android.gms.internal.ads.zzbk.zzb(v0_4)).put(v0_4).array();
        }
        byte[] v3_5 = new byte[256];
        com.google.android.gms.internal.ads.zzbp[] v4_0 = new com.google.android.gms.internal.ads.zzbn().zzpq;
        int v5 = v4_0.length;
        com.google.android.gms.internal.ads.zzazx v1_12 = 0;
        while (v1_12 < v5) {
            v4_0[v1_12].zza(v0_4, v3_5);
            v1_12++;
        }
        if ((p9 != null) && (p9.length() > 0)) {
            if (p9.length() > 32) {
                p9 = p9.substring(0, 32);
            }
            new com.google.android.gms.internal.ads.zzazx(p9.getBytes("UTF-8")).zzn(v3_5);
        }
        return v3_5;
    }

Method com.google.android.gms.internal.ads.zzazl.zzaar() calling method java.security.SecureRandom.<init>()


    private static java.security.SecureRandom zzaar()
    {
        java.security.SecureRandom v0_1 = new java.security.SecureRandom();
        v0_1.nextLong();
        return v0_1;
    }