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.appsflyer.ac.a() calling method java.security.SecureRandom.<init>()


    public static declared_synchronized String a(ref.WeakReference p7)
    {
        try {
            if (p7.get() != null) {
                if (ark>com.appsflyer.acark>.a == null) {
                    String v3_0 = 0;
                    if (p7.get() != null) {
                        v3_0 = ((android.content.Context) p7.get()).getSharedPreferences("appsflyer-data", 0).getString("AF_INSTALLATION", 0);
                    } else {
                    }
                    if (v3_0 == null) {
                        try {
                            int v1_5 = new java.io.File(((android.content.Context) p7.get()).getFilesDir(), "AF_INSTALLATION");
                        } catch (android.content.SharedPreferences$Editor v7_5) {
                            com.appsflyer.AFLogger.a("Error getting AF unique ID", v7_5);
                        }
                        if (v1_5.exists()) {
                            ark>com.appsflyer.acark>.a = ark>com.appsflyer.acark>.a(v1_5);
                            v1_5.delete();
                        } else {
                            int v1_9;
                            if (android.os.Build$VERSION.SDK_INT < 9) {
                                v1_9 = java.util.UUID.randomUUID().toString();
                            } else {
                                long v5_0 = System.currentTimeMillis();
                                int v1_11 = new StringBuilder();
                                v1_11.append(v5_0);
                                v1_11.append("-");
                                v1_11.append(Math.abs(new java.security.SecureRandom().nextLong()));
                                v1_9 = v1_11.toString();
                            }
                            ark>com.appsflyer.acark>.a = v1_9;
                        }
                        android.content.SharedPreferences$Editor v7_4 = ((android.content.Context) p7.get()).getSharedPreferences("appsflyer-data", 0).edit();
                        v7_4.putString("AF_INSTALLATION", ark>com.appsflyer.acark>.a);
                        if (android.os.Build$VERSION.SDK_INT < 9) {
                            v7_4.commit();
                        } else {
                            v7_4.apply();
                        }
                    } else {
                        ark>com.appsflyer.acark>.a = v3_0;
                    }
                    if (ark>com.appsflyer.acark>.a != null) {
                        com.appsflyer.i.a().a("uid", ark>com.appsflyer.acark>.a);
                    }
                }
                return ark>com.appsflyer.acark>.a;
            } else {
                return ark>com.appsflyer.acark>.a;
            }
        } catch (android.content.SharedPreferences$Editor v7_8) {
            throw v7_8;
        }
    }

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


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

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


    private static byte[] zza(byte[] p5, String p6, boolean p7)
    {
        int v0_0;
        if (p7 == null) {
            v0_0 = 255;
        } else {
            v0_0 = 239;
        }
        if (p5.length > v0_0) {
            p5 = com.google.android.gms.internal.ads.zzbuz.zzb(com.google.android.gms.internal.ads.zzbw.zzc(4096));
        }
        byte[] v5_2;
        if (p5.length >= v0_0) {
            v5_2 = java.nio.ByteBuffer.allocate((v0_0 + 1)).put(((byte) p5.length)).put(p5).array();
        } else {
            int v1_5 = new byte[(v0_0 - p5.length)];
            new java.security.SecureRandom().nextBytes(v1_5);
            v5_2 = java.nio.ByteBuffer.allocate((v0_0 + 1)).put(((byte) p5.length)).put(p5).put(v1_5).array();
        }
        if (p7 != null) {
            v5_2 = java.nio.ByteBuffer.allocate(256).put(com.google.android.gms.internal.ads.zzbw.zzb(v5_2)).put(v5_2).array();
        }
        byte[] v7_3 = new byte[256];
        int v0_10 = new com.google.android.gms.internal.ads.zzbz().zzqm;
        int v2_4 = v0_10.length;
        int v3 = 0;
        while (v3 < v2_4) {
            v0_10[v3].zza(v5_2, v7_3);
            v3++;
        }
        if ((p6 != null) && (p6.length() > 0)) {
            if (p6.length() > 32) {
                p6 = p6.substring(0, 32);
            }
            new com.google.android.gms.internal.ads.zzbpk(p6.getBytes("UTF-8")).zzq(v7_3);
        }
        return v7_3;
    }

Method com.google.ads.interactivemedia.v3.internal.jy.a() calling method java.security.SecureRandom.<init>()


    String a(byte[] p4, String p5)
    {
        if (p4.length > 239) {
            this.a();
            this.a(20, 1);
            p4 = this.b();
        }
        String v4_2;
        if (p4.length >= 239) {
            v4_2 = java.nio.ByteBuffer.allocate(240).put(((byte) p4.length)).put(p4).array();
        } else {
            byte[] v0_4 = new byte[(239 - p4.length)];
            new java.security.SecureRandom().nextBytes(v0_4);
            v4_2 = java.nio.ByteBuffer.allocate(240).put(((byte) p4.length)).put(p4).put(v0_4).array();
        }
        byte[] v0_6 = java.security.MessageDigest.getInstance("MD5");
        v0_6.update(v4_2);
        byte[] v0_9 = new byte[256];
        new com.google.ads.interactivemedia.v3.internal.jw().a(java.nio.ByteBuffer.allocate(256).put(v0_6.digest()).put(v4_2).array(), v0_9);
        if ((p5 != 0) && (p5.length() > 0)) {
            this.a(p5, v0_9);
        }
        return this.c.a(v0_9, 1);
    }

Method com.google.api.client.auth.oauth.OAuthParameters.<clinit>() calling method java.security.SecureRandom.<init>()


    static OAuthParameters()
    {
        com.google.api.client.auth.oauth.OAuthParameters.RANDOM = new java.security.SecureRandom();
        com.google.api.client.auth.oauth.OAuthParameters.ESCAPER = new com.google.api.client.util.escape.PercentEscaper("-_.~", 0);
        return;
    }

Method com.helpshift.websockets.p.<clinit>() calling method java.security.SecureRandom.<init>()


    static p()
    {
        com.helpshift.websockets.p.a = new java.security.SecureRandom();
        return;
    }

Method com.inmobi.commons.core.utilities.a.b.a() calling method java.security.SecureRandom.<init>()


    public static byte[] a(int p3)
    {
        byte[] v3_1 = new byte[p3];
        try {
            new java.security.SecureRandom().nextBytes(v3_1);
        } catch (String v0_2) {
            new StringBuilder("SDK encountered unexpected error in generating crypto key; ").append(v0_2.getMessage());
        }
        return v3_1;
    }

Method com.inmobi.commons.core.utilities.a.b.b() calling method java.security.SecureRandom.<init>()


    private static byte[] b()
    {
        try {
            int v0_4 = javax.crypto.KeyGenerator.getInstance("AES");
            v0_4.init(128, new java.security.SecureRandom());
            int v0_6 = v0_4.generateKey();
        } catch (int v0_1) {
            new StringBuilder("SDK encountered unexpected error in generating AES public key; ").append(v0_1.getMessage());
            return 0;
        }
        if (v0_6 == 0) {
            return 0;
        } else {
            return v0_6.getEncoded();
        }
    }

Method com.inmobi.ads.bd.y() calling method java.security.SecureRandom.<init>()


    private static String y()
    {
        String v0_1 = new java.security.SecureRandom();
        StringBuilder v1_1 = new StringBuilder();
        int v2_3 = 0;
        while (v2_3 == 0) {
            v2_3 = ((v0_1.nextInt() & 2147483647) % 10);
        }
        v1_1.append(v2_3);
        int v2_0 = 1;
        while (v2_0 < 8) {
            v1_1.append(((v0_1.nextInt() & 2147483647) % 10));
            v2_0++;
        }
        return v1_1.toString();
    }

Method com.exoplayer2.upstream.cache.h.f() calling method java.util.Random.<init>()


    private void f()
    {
        try {
            java.io.DataOutputStream v1_5 = this.d.startWrite();
        } catch (java.io.DataOutputStream v1_3) {
            java.io.DataOutputStream v1_2 = 0;
            java.security.InvalidKeyException v0_2 = v1_3;
            com.google.android.exoplayer2.util.Util.closeQuietly(v1_2);
            throw v0_2;
        } catch (java.io.DataOutputStream v1_1) {
            v1_2 = 0;
            java.security.InvalidKeyException v0_1 = v1_1;
            throw new com.exoplayer2.upstream.cache.Cache$CacheException(v0_1);
        } catch (java.security.InvalidKeyException v0_2) {
        }
        if (this.i != null) {
            this.i.reset(v1_5);
        } else {
            this.i = new com.google.android.exoplayer2.util.ReusableBufferedOutputStream(v1_5);
        }
        v1_2 = new java.io.DataOutputStream(this.i);
        try {
            v1_2.writeInt(2);
            v1_2.writeInt(this.g);
        } catch (java.security.InvalidKeyException v0_1) {
        }
        if (this.g) {
            int v3_3 = new byte[16];
            new java.util.Random().nextBytes(v3_3);
            v1_2.write(v3_3);
            this.e.init(1, this.f, new javax.crypto.spec.IvParameterSpec(v3_3));
            v1_2.flush();
            v1_2 = new java.io.DataOutputStream(new javax.crypto.CipherOutputStream(this.i, this.e));
        }
        v1_2.writeInt(this.a.size());
        int v3_9 = 0;
        javax.crypto.CipherOutputStream v4_8 = this.a.values().iterator();
        while (v4_8.hasNext()) {
            int v5_4 = ((com.exoplayer2.upstream.cache.g) v4_8.next());
            v5_4.a(v1_2);
            v3_9 += v5_4.a(2);
        }
        v1_2.writeInt(v3_9);
        this.d.endWrite(v1_2);
        com.google.android.exoplayer2.util.Util.closeQuietly(0);
        return;
    }

Method com.facebook.ads.internal.s.a.q.a() calling method java.util.Random.<init>()


    public static String a(int p3)
    {
        if (p3 > null) {
            if (new java.util.Random().nextFloat() >= (1065353216 / ((float) p3))) {
                return 0;
            } else {
                return ark>com.facebook.ads.internal.s.a.qark>.a();
            }
        } else {
            return 0;
        }
    }

Method com.facebook.internal.Utility.generateRandomString() calling method java.util.Random.<init>()


    public static String generateRandomString(int p2)
    {
        return new java.math.BigInteger((p2 * 5), new java.util.Random()).toString(32);
    }

Method com.gaana.adapter.CustomGridViewAdapter.getAdPostion() calling method java.util.Random.<init>()


    private int getAdPostion(int p3, int p4)
    {
        int v0_0 = -1;
        if (p4 != null) {
            if (p4 != 4) {
                if (((p4 - 4) % 10) == 0) {
                    int v0_6 = (p4 + 4);
                    if (p3 > v0_6) {
                        p3 = v0_6;
                    }
                    v0_0 = (new java.util.Random().nextInt(((p3 - p4) + 1)) + p4);
                    this.mListofAdposition.add(Integer.valueOf(v0_0));
                }
            } else {
                if (p3 > 11) {
                    p3 = (p4 + 4);
                }
                v0_0 = (new java.util.Random().nextInt(((p3 - p4) + 1)) + p4);
                this.mListofAdposition.add(Integer.valueOf(v0_0));
            }
            return v0_0;
        } else {
            return -1;
        }
    }

Method com.gaana.adapter.ListAdapter.getAdPostion() calling method java.util.Random.<init>()


    private int getAdPostion(int p3, int p4)
    {
        int v0_0 = -1;
        if (p4 != null) {
            if (p4 != 4) {
                if (((p4 - 4) % 10) == 0) {
                    int v0_6 = (p4 + 4);
                    if (p3 > v0_6) {
                        p3 = v0_6;
                    }
                    v0_0 = (new java.util.Random().nextInt(((p3 - p4) + 1)) + p4);
                    this.mListofAdposition.add(Integer.valueOf(v0_0));
                }
            } else {
                if (p3 > 11) {
                    p3 = (p4 + 4);
                }
                v0_0 = (new java.util.Random().nextInt(((p3 - p4) + 1)) + p4);
                this.mListofAdposition.add(Integer.valueOf(v0_0));
            }
            return v0_0;
        } else {
            return -1;
        }
    }

Method com.fcm.GaanaFcmMessagingService.a() calling method java.util.Random.<init>()


    private boolean a(android.content.Context p11, android.content.Intent p12)
    {
        try {
            int v12_1 = p12.getExtras();
        } catch (Exception) {
            return 0;
        }
        if ((v12_1 == 0) || (!v12_1.containsKey("data"))) {
            return 0;
        } else {
            int v12_5 = v12_1.getString("data");
            if (v12_5 == 0) {
                return 0;
            } else {
                android.app.Notification v0_2 = new com.google.gson.GsonBuilder();
                int v2_0 = new int[2];
                v2_0 = {8, 4};
                android.app.Notification v0_7 = ((com.gaana.models.PushNotification) v0_2.excludeFieldsWithModifiers(v2_0).create().fromJson(v12_5, com.gaana.models.PushNotification));
                if (v0_7 != null) {
                    int v3_8 = new android.content.Intent(p11, com.gaana.SplashScreenActivity);
                    v3_8.setAction("android.intent.action.VIEW");
                    v3_8.putExtra("data", v12_5);
                    int v12_4 = new java.util.Random().nextInt(1000);
                    int v3_9 = android.app.PendingIntent.getActivity(p11, v12_4, v3_8, 1073741824);
                    int v4_10 = v0_7.getAlert();
                    String v5_0 = v0_7.getUrl();
                    if (this.a(v4_10, v5_0)) {
                        long v6_1 = System.currentTimeMillis();
                        this.a(v4_10, v5_0, v6_1);
                        if ((android.text.TextUtils.isEmpty(v5_0)) || ((!v5_0.contains("view/downloadsync")) || (!this.b(v5_0)))) {
                            String v5_2 = 2131820677;
                            if (com.constants.Constants.l) {
                                v5_2 = 2131820678;
                            }
                            String v5_3 = p11.getString(v5_2);
                            if (!android.text.TextUtils.isEmpty(v0_7.getTitle())) {
                                v5_3 = v0_7.getTitle();
                            }
                            android.app.Notification v0_18 = new android.support.v4.app.NotificationCompat$Builder(p11, "com.gaana.other").setContentTitle(v5_3).setStyle(new android.support.v4.app.NotificationCompat$BigTextStyle().bigText(v4_10)).setSmallIcon(com.utilities.Util.w()).setContentText(v4_10).setContentIntent(v3_9).setWhen(v6_1);
                            int v3_11 = new StringBuilder();
                            v3_11.append("android.resource://");
                            v3_11.append(this.getPackageName());
                            v3_11.append("/");
                            v3_11.append(2131755008);
                            android.app.Notification v0_1 = v0_18.setSound(android.net.Uri.parse(v3_11.toString()));
                            if (android.os.Build$VERSION.SDK_INT >= 21) {
                                v0_1.setColor(com.gaana.application.GaanaApplication.getContext().getResources().getColor(2131100038));
                            }
                            android.app.Notification v0_3 = v0_1.build();
                            v0_3.defaults = (2 | v0_3.defaults);
                            v0_3.flags = (v0_3.flags | 16);
                            ((android.app.NotificationManager) p11.getSystemService("notification")).notify(v12_4, v0_3);
                        } else {
                            return 1;
                        }
                    } else {
                        return 1;
                    }
                }
                return 1;
            }
        }
    }

Method com.fragments.SongsSelectionFragment.c() calling method java.util.Random.<init>()


    public com.fragments.BaseGaanaFragment c()
    {
        java.util.ArrayList v1_0;
        com.gaana.application.GaanaApplication v0_1 = new com.models.ListingParams();
        String[] v2_4 = 0;
        if (this.l == 2) {
            java.util.ArrayList v1_24;
            v0_1.e(0);
            v0_1.f(1);
            v0_1.d(0);
            v0_1.i(0);
            v0_1.a(0);
            if (((!(this.j instanceof com.gaana.models.Playlists$Playlist)) && (!(this.j instanceof com.gaana.models.Tracks))) || ((this.j == null) || ((this.j.getArrListBusinessObj() == null) || (this.j.getArrListBusinessObj().size() <= 0)))) {
                v1_24 = 0;
            } else {
                v1_24 = this.j.getArrListBusinessObj();
            }
            String v6_5 = com.gaana.juke.JukeSessionManager.getInstance().getCurrentBusinessObject();
            if ((v6_5 != null) && (v6_5.getArrListBusinessObj() != null)) {
                int v7_3 = v6_5.getArrListBusinessObj().size();
                if (v7_3 <= 5) {
                    if (v7_3 > 0) {
                        v2_4 = new String[v7_3];
                        int v7_4 = (v7_3 - 1);
                        while (v7_4 >= 0) {
                            v2_4[v7_4] = ((com.gaana.models.BusinessObject) v6_5.getArrListBusinessObj().get(v7_4)).getBusinessObjId();
                            v7_4--;
                        }
                    }
                } else {
                    v2_4 = new String[5];
                    java.util.Random v8_2 = new java.util.Random();
                    v2_4[0] = ((com.gaana.models.BusinessObject) v6_5.getArrListBusinessObj().get((v7_3 - 1))).getBusinessObjId();
                    v2_4[1] = ((com.gaana.models.BusinessObject) v6_5.getArrListBusinessObj().get((v7_3 - 2))).getBusinessObjId();
                    int v7_5 = (v7_3 - 3);
                    v2_4[2] = ((com.gaana.models.BusinessObject) v6_5.getArrListBusinessObj().get(v7_5)).getBusinessObjId();
                    v2_4[3] = ((com.gaana.models.BusinessObject) v6_5.getArrListBusinessObj().get(v8_2.nextInt(v7_5))).getBusinessObjId();
                    v2_4[4] = ((com.gaana.models.BusinessObject) v6_5.getArrListBusinessObj().get(v8_2.nextInt(v7_5))).getBusinessObjId();
                }
            }
            v1_0 = com.constants.Constants.a(v2_4, v1_24);
            v0_1.a(((com.models.ListingButton) v1_0.c().get(0)));
            v0_1.a(com.managers.GaanaSearchManager$SearchType.Playlist_Search);
        } else {
            v0_1.e(0);
            v0_1.f(1);
            v0_1.d(0);
            v0_1.i(0);
            v0_1.a(0);
            if ((((this.j instanceof com.gaana.models.Playlists$Playlist)) || ((this.j instanceof com.gaana.models.Tracks))) && ((this.j != null) && ((this.j.getArrListBusinessObj() != null) && (this.j.getArrListBusinessObj().size() > 0)))) {
                v2_4 = this.j.getArrListBusinessObj();
            }
            v1_0 = com.constants.Constants.b(com.managers.GaanaSearchManager$SearchType.Playlist_Search, v2_4);
            v0_1.a(((com.models.ListingButton) v1_0.c().get(0)));
            v0_1.a(com.managers.GaanaSearchManager$SearchType.Playlist_Search);
        }
        String[] v2_10 = new com.fragments.ListingFragment();
        v2_10.a(v0_1);
        com.gaana.application.GaanaApplication v0_3 = new android.os.Bundle();
        v0_3.putBoolean("is_child_fragment", 1);
        v2_10.setArguments(v0_3);
        com.gaana.application.GaanaApplication.getInstance().setListingComponents(v1_0);
        return v2_10;
    }

Method com.gaana.revampeddetail.manager.RevampDetailAdManager.getAdPostion() calling method java.util.Random.<init>()


    private int getAdPostion(int p4)
    {
        int v0_0 = -1;
        if (p4 != null) {
            Integer v1_4 = this.mOriginalList.size();
            if (p4 != 4) {
                if (((p4 - 4) % 10) == 0) {
                    int v0_1 = (p4 + 4);
                    if (v1_4 <= v0_1) {
                        v0_1 = v1_4;
                    }
                    v0_0 = (new java.util.Random().nextInt(((v0_1 - p4) + 1)) + p4);
                    this.mListOfAdPosition.add(Integer.valueOf(v0_0));
                }
            } else {
                if (v1_4 > 11) {
                    v1_4 = (p4 + 4);
                }
                v0_0 = (new java.util.Random().nextInt(((v1_4 - p4) + 1)) + p4);
                this.mListOfAdPosition.add(Integer.valueOf(v0_0));
            }
            return v0_0;
        } else {
            return -1;
        }
    }

Method com.google.android.exoplayer2.upstream.cache.CachedContentIndex.writeFile() calling method java.util.Random.<init>()


    private void writeFile()
    {
        try {
            java.io.DataOutputStream v1_5 = this.atomicFile.startWrite();
        } catch (java.io.DataOutputStream v1_3) {
            java.io.DataOutputStream v1_2 = 0;
            java.security.InvalidKeyException v0_2 = v1_3;
            com.google.android.exoplayer2.util.Util.closeQuietly(v1_2);
            throw v0_2;
        } catch (java.io.DataOutputStream v1_1) {
            v1_2 = 0;
            java.security.InvalidKeyException v0_1 = v1_1;
            throw new com.google.android.exoplayer2.upstream.cache.Cache$CacheException(v0_1);
        } catch (java.security.InvalidKeyException v0_2) {
        }
        if (this.bufferedOutputStream != null) {
            this.bufferedOutputStream.reset(v1_5);
        } else {
            this.bufferedOutputStream = new com.google.android.exoplayer2.util.ReusableBufferedOutputStream(v1_5);
        }
        v1_2 = new java.io.DataOutputStream(this.bufferedOutputStream);
        try {
            v1_2.writeInt(2);
            v1_2.writeInt(this.encrypt);
        } catch (java.security.InvalidKeyException v0_1) {
        }
        if (this.encrypt) {
            int v3_3 = new byte[16];
            new java.util.Random().nextBytes(v3_3);
            v1_2.write(v3_3);
            this.cipher.init(1, this.secretKeySpec, new javax.crypto.spec.IvParameterSpec(v3_3));
            v1_2.flush();
            v1_2 = new java.io.DataOutputStream(new javax.crypto.CipherOutputStream(this.bufferedOutputStream, this.cipher));
        }
        v1_2.writeInt(this.keyToContent.size());
        int v3_9 = 0;
        javax.crypto.CipherOutputStream v4_8 = this.keyToContent.values().iterator();
        while (v4_8.hasNext()) {
            int v5_4 = ((com.google.android.exoplayer2.upstream.cache.CachedContent) v4_8.next());
            v5_4.writeToStream(v1_2);
            v3_9 += v5_4.headerHashCode(2);
        }
        v1_2.writeInt(v3_9);
        this.atomicFile.endWrite(v1_2);
        com.google.android.exoplayer2.util.Util.closeQuietly(0);
        return;
    }

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


    private static java.util.Random zzz()
    {
        if (com.google.android.gms.internal.ads.zzco.zzqs == null) {
            try {
                if (com.google.android.gms.internal.ads.zzco.zzqs == null) {
                    com.google.android.gms.internal.ads.zzco.zzqs = new java.util.Random();
                }
            } catch (java.util.Random v1_3) {
                throw v1_3;
            }
        }
        return com.google.android.gms.internal.ads.zzco.zzqs;
    }

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


    protected zzwu()
    {
        com.google.android.gms.internal.ads.zzbat v1_1 = new com.google.android.gms.internal.ads.zzbat();
        com.google.android.gms.internal.ads.zzwj v11 = new com.google.android.gms.internal.ads.zzwj;
        v11(new com.google.android.gms.internal.ads.zzvz(), new com.google.android.gms.internal.ads.zzvy(), new com.google.android.gms.internal.ads.zzzg(), new com.google.android.gms.internal.ads.zzafa(), new com.google.android.gms.internal.ads.zzavf(), new com.google.android.gms.internal.ads.zzawf(), new com.google.android.gms.internal.ads.zzaoo(), new com.google.android.gms.internal.ads.zzafb());
        this(v1_1, v11, new com.google.android.gms.internal.ads.zzaai(), new com.google.android.gms.internal.ads.zzaaj(), new com.google.android.gms.internal.ads.zzaak(), com.google.android.gms.internal.ads.zzbat.zzaas(), new com.google.android.gms.internal.ads.zzbbi(0, 14300000, 1), new java.util.Random());
        return;
    }

Method com.google.android.gms.internal.measurement.zzea.generateEventId() calling method java.util.Random.<init>()


    public final long generateEventId()
    {
        long v0_1 = new com.google.android.gms.internal.measurement.zzea$zza(this);
        this.zza(new com.google.android.gms.internal.measurement.zzel(this, v0_1));
        long v0_3 = ((Long) v0_1.zza(v0_1.zzl(500), Long));
        if (v0_3 != 0) {
            return v0_3.longValue();
        } else {
            long v0_7 = new java.util.Random((System.nanoTime() ^ this.zzrz.currentTimeMillis())).nextLong();
            long v2_1 = (this.zzado + 1);
            this.zzado = v2_1;
            return (v0_7 + ((long) v2_1));
        }
    }

Method com.google.android.gms.tagmanager.zzai.<init>() calling method java.util.Random.<init>()


    public zzai(android.content.Context p2, String p3)
    {
        this(p2, p3, new java.util.Random());
        return;
    }

Method com.gaana.view.item.JukePlaylistItemView.getColorBG() calling method java.util.Random.<init>()


    private android.graphics.drawable.GradientDrawable getColorBG()
    {
        android.graphics.drawable.GradientDrawable v0_1 = new android.graphics.drawable.GradientDrawable();
        v0_1.setCornerRadius(((float) com.utilities.Util.b(4)));
        v0_1.setColor(this.mColorBGArray[new java.util.Random().nextInt(this.mColorBGArray.length)]);
        return v0_1;
    }

Method com.google.android.exoplayer2.source.ShuffleOrder$DefaultShuffleOrder.<init>() calling method java.util.Random.<init>()


    public ShuffleOrder$DefaultShuffleOrder(int p2)
    {
        this(p2, new java.util.Random());
        return;
    }

Method com.google.android.exoplayer2.source.ShuffleOrder$DefaultShuffleOrder.<init>() calling method java.util.Random.<init>()


    public ShuffleOrder$DefaultShuffleOrder(int p2, long p3)
    {
        this(p2, new java.util.Random(p3));
        return;
    }

Method com.google.android.exoplayer2.source.ShuffleOrder$DefaultShuffleOrder.<init>() calling method java.util.Random.<init>()


    public ShuffleOrder$DefaultShuffleOrder(int[] p2, long p3)
    {
        this(java.util.Arrays.copyOf(p2, p2.length), new java.util.Random(p3));
        return;
    }

Method com.google.android.exoplayer2.source.ShuffleOrder$DefaultShuffleOrder.cloneAndClear() calling method java.util.Random.<init>()


    public com.google.android.exoplayer2.source.ShuffleOrder cloneAndClear()
    {
        return new com.google.android.exoplayer2.source.ShuffleOrder$DefaultShuffleOrder(0, new java.util.Random(this.random.nextLong()));
    }

Method com.google.android.exoplayer2.source.ShuffleOrder$DefaultShuffleOrder.cloneAndInsert() calling method java.util.Random.<init>()


    public com.google.android.exoplayer2.source.ShuffleOrder cloneAndInsert(int p9, int p10)
    {
        long v0_0 = new int[p10];
        int[] v1 = new int[p10];
        int v2 = 0;
        int[] v3_0 = 0;
        while (v3_0 < p10) {
            v0_0[v3_0] = this.random.nextInt((this.shuffled.length + 1));
            int v5_8 = (v3_0 + 1);
            int v4_5 = this.random.nextInt(v5_8);
            v1[v3_0] = v1[v4_5];
            v1[v4_5] = (v3_0 + p9);
            v3_0 = v5_8;
        }
        java.util.Arrays.sort(v0_0);
        int[] v3_5 = new int[(this.shuffled.length + p10)];
        int v4_0 = 0;
        int v5_0 = 0;
        while (v2 < (this.shuffled.length + p10)) {
            if ((v4_0 >= p10) || (v5_0 != v0_0[v4_0])) {
                int v7 = (v5_0 + 1);
                v3_5[v2] = this.shuffled[v5_0];
                if (v3_5[v2] >= p9) {
                    v3_5[v2] = (v3_5[v2] + p10);
                }
                v5_0 = v7;
            } else {
                int v6_5 = (v4_0 + 1);
                v3_5[v2] = v1[v4_0];
                v4_0 = v6_5;
            }
            v2++;
        }
        return new com.google.android.exoplayer2.source.ShuffleOrder$DefaultShuffleOrder(v3_5, new java.util.Random(this.random.nextLong()));
    }

Method com.google.android.exoplayer2.source.ShuffleOrder$DefaultShuffleOrder.cloneAndRemove() calling method java.util.Random.<init>()


    public com.google.android.exoplayer2.source.ShuffleOrder cloneAndRemove(int p7, int p8)
    {
        java.util.Random v0_0 = (p8 - p7);
        int v2_1 = 0;
        int[] v1_3 = new int[(this.shuffled.length - v0_0)];
        int v3 = 0;
        while (v2_1 < this.shuffled.length) {
            if ((this.shuffled[v2_1] < p7) || (this.shuffled[v2_1] >= p8)) {
                int v5_3;
                if (this.shuffled[v2_1] < p7) {
                    v5_3 = this.shuffled[v2_1];
                } else {
                    v5_3 = (this.shuffled[v2_1] - v0_0);
                }
                v1_3[(v2_1 - v3)] = v5_3;
            } else {
                v3++;
            }
            v2_1++;
        }
        return new com.google.android.exoplayer2.source.ShuffleOrder$DefaultShuffleOrder(v1_3, new java.util.Random(this.random.nextLong()));
    }

Method com.google.android.exoplayer2.trackselection.RandomTrackSelection$Factory.<init>() calling method java.util.Random.<init>()


    public RandomTrackSelection$Factory()
    {
        this.random = new java.util.Random();
        return;
    }

Method com.google.android.exoplayer2.trackselection.RandomTrackSelection$Factory.<init>() calling method java.util.Random.<init>()


    public RandomTrackSelection$Factory(int p4)
    {
        this.random = new java.util.Random(((long) p4));
        return;
    }

Method com.google.android.exoplayer2.trackselection.RandomTrackSelection.<init>() calling method java.util.Random.<init>()


    public varargs RandomTrackSelection(com.google.android.exoplayer2.source.TrackGroup p1, int[] p2)
    {
        super(p1, p2);
        super.random = new java.util.Random();
        super.selectedIndex = super.random.nextInt(super.length);
        return;
    }

Method com.google.android.exoplayer2.trackselection.RandomTrackSelection.<init>() calling method java.util.Random.<init>()


    public RandomTrackSelection(com.google.android.exoplayer2.source.TrackGroup p2, int[] p3, long p4)
    {
        this(p2, p3, new java.util.Random(p4));
        return;
    }

Method com.google.android.gms.analytics.Tracker.<init>() calling method java.util.Random.<init>()


    Tracker(com.google.android.gms.internal.measurement.zzaw p3, String p4, com.google.android.gms.internal.measurement.zzcn p5)
    {
        super(p3);
        super.zzsy = new java.util.HashMap();
        super.zzsz = new java.util.HashMap();
        if (p4 != null) {
            super.zzsy.put("&tid", p4);
        }
        super.zzsy.put("useSecure", "1");
        super.zzsy.put("&a", Integer.toString((new java.util.Random().nextInt(2147483647) + 1)));
        super.zzta = new com.google.android.gms.internal.measurement.zzcn("tracking", super.zzbx());
        super.zztb = new com.google.android.gms.analytics.Tracker$zza(super, p3);
        return;
    }

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


    public final void onAdClosed()
    {
        if (com.google.android.gms.internal.ads.zzaht.zztz()) {
            long v0_1 = ((Integer) com.google.android.gms.internal.ads.zzwu.zzpz().zzd(com.google.android.gms.internal.ads.zzaan.zzcsh)).intValue();
            int v1_3 = ((Integer) com.google.android.gms.internal.ads.zzwu.zzpz().zzd(com.google.android.gms.internal.ads.zzaan.zzcsi)).intValue();
            if ((v0_1 > 0) && (v1_3 >= 0)) {
                com.google.android.gms.internal.ads.zzayh.zzelc.postDelayed(com.google.android.gms.internal.ads.zzahl.zzdhd, ((long) (v0_1 + new java.util.Random().nextInt((v1_3 + 1)))));
            } else {
                com.google.android.gms.ads.internal.zzbv.zzlt().zzth();
            }
        }
        this.zzdhc.onAdClosed();
        return;
    }

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


    public zzwv()
    {
        this.mLock = new Object();
        this.zzcls = new java.util.Random();
        this.zzqd();
        return;
    }

Method com.helpshift.common.b.b.<init>() calling method java.util.Random.<init>()


    b(com.helpshift.common.b.b$a p3)
    {
        this.c = p3.a;
        this.d = p3.b;
        this.e = p3.c;
        this.f = p3.d;
        this.g = p3.e;
        this.h = new java.util.Random();
        this.a();
        return;
    }

Method com.inmobi.ads.cache.a$a.<init>() calling method java.util.Random.<init>()


    public a$a()
    {
        this.a = (new java.util.Random().nextInt() & 2147483647);
        this.e = System.currentTimeMillis();
        this.f = System.currentTimeMillis();
        return;
    }

Method com.inmobi.commons.core.network.c.d() calling method java.util.Random.<init>()


    private void d(java.util.Map p6)
    {
        p6.putAll(com.inmobi.commons.core.utilities.b.a.a().b);
        p6.putAll(com.inmobi.commons.core.utilities.b.b.a(this.y));
        p6.putAll(com.inmobi.commons.core.utilities.b.f.a());
        if (this.b != null) {
            if (!this.b()) {
                String v0_3 = this.b;
                String v1_3 = Integer.toString(new java.util.Random().nextInt());
                String v0_7 = com.inmobi.commons.core.utilities.a.c.a(new org.json.JSONObject(v0_3.a(v1_3, 1)).toString());
                java.util.HashMap v2_4 = new java.util.HashMap();
                v2_4.put("u-id-map", v0_7);
                v2_4.put("u-id-key", v1_3);
                com.inmobi.commons.core.utilities.uid.c.a();
                v2_4.put("u-key-ver", com.inmobi.commons.core.utilities.uid.c.d());
                p6.putAll(v2_4);
            } else {
                String v0_11 = this.b;
                String v1_6 = new java.util.HashMap();
                v1_6.put("u-id-map", new org.json.JSONObject(v0_11.a(0, 0)).toString());
                p6.putAll(v1_6);
                return;
            }
        }
        return;
    }

Method com.inmobi.rendering.a.a.<init>() calling method java.util.Random.<init>()


    a(String p14, java.util.Map p15, boolean p16, int p17)
    {
        this((new java.util.Random().nextInt() & 2147483647), p14, p15, p16, 0, p17, System.currentTimeMillis(), System.currentTimeMillis());
        return;
    }

Method com.inmobi.rendering.a.a.<init>() calling method java.util.Random.<init>()


    a(String p14, boolean p15, boolean p16, int p17)
    {
        this((new java.util.Random().nextInt() & 2147483647), p14, new java.util.HashMap(), p15, p16, p17, System.currentTimeMillis(), System.currentTimeMillis());
        return;
    }

Method com.payu.custombrowser.services.SnoozeService.d() calling method java.util.Random.<init>()


    private void d()
    {
        this.E = 0;
        String v0_3 = new StringBuilder();
        v0_3.append("https://static.payu.in/images/speed_test/");
        v0_3.append(com.payu.custombrowser.util.CBConstant.SNOOZE_IMAGE_COLLECTIONS[new java.util.Random().nextInt(2)]);
        String v0_1 = v0_3.toString();
        com.payu.custombrowser.services.SnoozeService$3 v7 = new com.payu.custombrowser.services.SnoozeService$3;
        v7(this, ((long) com.payu.custombrowser.services.SnoozeService.b), 1000);
        v7.start();
        new Thread(new com.payu.custombrowser.services.SnoozeService$4(this, v0_1, v7)).start();
        return;
    }

Method com.simpl.android.fingerprint.a.b.a() calling method java.util.Random.<init>()


    static byte[] a(byte[] p11)
    {
        int v3_1 = (p11.length + 1);
        byte[] v4 = new byte[v3_1];
        int v2_0 = (new java.util.Random().nextInt(7) + 1);
        int v5_0 = 0;
        int v6 = 0;
        while (v5_0 < v3_1) {
            byte v7_0 = p11.length;
            int v8 = (v5_0 + 1);
            if ((v7_0 % 2) != 0) {
                v7_0++;
            }
            byte v7_2;
            if ((v7_0 / 2) != v8) {
                v7_2 = 0;
            } else {
                v7_2 = 1;
            }
            if (v7_2 == 0) {
                byte v7_4 = (p11[v6] & 255);
                v4[v5_0] = ((byte) ((v7_4 << (8 - v2_0)) | (v7_4 >> v2_0)));
                v6++;
            } else {
                v4[v5_0] = ((byte) v2_0);
            }
            v5_0 = v8;
        }
        return v4;
    }

Method com.simpl.android.fingerprint.commons.exception.a.c() calling method java.util.Random.<init>()


    private static void c(Throwable p11, java.util.Map p12)
    {
        try {
            String v0_7 = new java.util.Random().nextInt(99999);
            java.io.BufferedWriter v1_4 = new StringBuilder();
            v1_4.append(com.simpl.android.fingerprint.commons.exception.a.g);
            v1_4.append(com.simpl.android.fingerprint.commons.exception.a.c);
            v1_4.append("-");
            v1_4.append(String.valueOf(v0_7));
            v1_4.append(".xml");
            java.io.BufferedWriter v1_2 = new java.io.BufferedWriter(new java.io.FileWriter(v1_4.toString()));
            String v0_5 = android.util.Xml.newSerializer();
            v0_5.setOutput(v1_2);
            v0_5.startDocument("UTF-8", Boolean.TRUE);
            v0_5.startTag("", "notice");
            v0_5.attribute("", "version", "2.0");
            v0_5.startTag("", "api-key");
            v0_5.text(com.simpl.android.fingerprint.commons.exception.a.e);
            v0_5.endTag("", "api-key");
            v0_5.startTag("", "notifier");
            v0_5.startTag("", "name");
            v0_5.text("Android Airbrake Notifier");
            v0_5.endTag("", "name");
            v0_5.startTag("", "version");
            v0_5.text("1.3.0");
            v0_5.endTag("", "version");
            v0_5.startTag("", "url");
            v0_5.text("http://loopj.com");
            v0_5.endTag("", "url");
            v0_5.endTag("", "notifier");
            v0_5.startTag("", "error");
            v0_5.startTag("", "class");
            v0_5.text(p11.getClass().getName());
            v0_5.endTag("", "class");
            v0_5.startTag("", "message");
            String v2_81 = new StringBuilder("[");
            v2_81.append(com.simpl.android.fingerprint.commons.exception.a.c);
            v2_81.append("] ");
            v2_81.append(p11.toString());
            v0_5.text(v2_81.toString());
            v0_5.endTag("", "message");
            v0_5.startTag("", "backtrace");
            String v2_4 = p11;
        } catch (Exception) {
            return;
        }
        while (v2_4 != null) {
            String v3_3 = v2_4.getStackTrace();
            String v4_0 = v3_3.length;
            String v5_0 = 0;
            while (v5_0 < v4_0) {
                String v6_2 = v3_3[v5_0];
                v0_5.startTag("", "line");
                String v9_4;
                String v9_1 = new StringBuilder();
                v9_1.append(v6_2.getClassName());
                v9_1.append(".");
                v9_1.append(v6_2.getMethodName());
                v0_5.attribute("", "method", v9_1.toString());
                if (v6_2.getFileName() != null) {
                    v9_4 = v6_2.getFileName();
                } else {
                    v9_4 = "Unknown";
                }
                v0_5.attribute("", "file", v9_4);
                v0_5.attribute("", "number", String.valueOf(v6_2.getLineNumber()));
                v0_5.endTag("", "line");
                v5_0++;
            }
            v2_4 = v2_4.getCause();
            if (v2_4 != null) {
                v0_5.startTag("", "line");
                String v5_2 = new StringBuilder("### CAUSED BY ###: ");
                v5_2.append(v2_4.toString());
                v0_5.attribute("", "file", v5_2.toString());
                v0_5.attribute("", "number", "");
                v0_5.endTag("", "line");
            }
        }
        v0_5.endTag("", "backtrace");
        v0_5.endTag("", "error");
        v0_5.startTag("", "request");
        v0_5.startTag("", "url");
        v0_5.endTag("", "url");
        v0_5.startTag("", "component");
        v0_5.endTag("", "component");
        v0_5.startTag("", "action");
        v0_5.endTag("", "action");
        v0_5.startTag("", "cgi-data");
        v0_5.startTag("", "var");
        v0_5.attribute("", "key", "Device");
        v0_5.text(android.os.Build.MODEL);
        v0_5.endTag("", "var");
        v0_5.startTag("", "var");
        v0_5.attribute("", "key", "Android Version");
        v0_5.text(android.os.Build$VERSION.RELEASE);
        v0_5.endTag("", "var");
        v0_5.startTag("", "var");
        v0_5.attribute("", "key", "App Version");
        v0_5.text(com.simpl.android.fingerprint.commons.exception.a.c);
        v0_5.endTag("", "var");
        v0_5.startTag("", "var");
        v0_5.attribute("", "key", "Parent App");
        v0_5.text(com.simpl.android.fingerprint.commons.exception.a.b);
        v0_5.endTag("", "var");
        if ((com.simpl.android.fingerprint.commons.exception.a.d != null) && (!com.simpl.android.fingerprint.commons.exception.a.d.isEmpty())) {
            String v2_38 = com.simpl.android.fingerprint.commons.exception.a.d.entrySet().iterator();
            while (v2_38.hasNext()) {
                String v3_38 = ((java.util.Map$Entry) v2_38.next());
                v0_5.startTag("", "var");
                v0_5.attribute("", "key", ((String) v3_38.getKey()));
                v0_5.text(((String) v3_38.getValue()));
                v0_5.endTag("", "var");
            }
        }
        if ((p12 != null) && (!p12.isEmpty())) {
            java.util.Iterator v12_2 = p12.entrySet().iterator();
            while (v12_2.hasNext()) {
                String v2_54 = ((java.util.Map$Entry) v12_2.next());
                v0_5.startTag("", "var");
                v0_5.attribute("", "key", ((String) v2_54.getKey()));
                v0_5.text(((String) v2_54.getValue()));
                v0_5.endTag("", "var");
            }
        }
        v0_5.endTag("", "cgi-data");
        v0_5.endTag("", "request");
        v0_5.startTag("", "server-environment");
        v0_5.startTag("", "environment-name");
        v0_5.text(com.simpl.android.fingerprint.commons.exception.a.a);
        v0_5.endTag("", "environment-name");
        v0_5.startTag("", "app-version");
        v0_5.text(com.simpl.android.fingerprint.commons.exception.a.c);
        v0_5.endTag("", "app-version");
        v0_5.endTag("", "server-environment");
        v0_5.endTag("", "notice");
        v0_5.endDocument();
        v1_2.flush();
        v1_2.close();
        java.util.Iterator v12_15 = new StringBuilder("Writing new ");
        v12_15.append(p11.getClass().getName());
        v12_15.append(" exception to disk.");
        return;
    }

Method com.til.colombia.android.internal.a.h.a() calling method java.util.Random.<init>()


    private static int a(int p1, int p2)
    {
        return (new java.util.Random().nextInt(((p2 - p1) + 1)) + p1);
    }

Method net.hockeyapp.android.d.h.<init>() calling method java.util.Random.<init>()


    public h()
    {
        String v0_0 = 0;
        this.c = 0;
        this.b = 0;
        this.d = new java.io.ByteArrayOutputStream();
        StringBuffer v1_3 = new StringBuffer();
        java.util.Random v2_0 = new java.util.Random();
        while (v0_0 < 30) {
            v1_3.append(net.hockeyapp.android.d.h.a[v2_0.nextInt(net.hockeyapp.android.d.h.a.length)]);
            v0_0++;
        }
        this.e = v1_3.toString();
        return;
    }

Method net.jpountz.a.e.<init>() calling method java.util.Random.<init>()


    private e(String p12)
    {
        this.d = p12;
        long v0_10 = new StringBuilder();
        v0_10.append("net.jpountz.xxhash.XXHash32");
        v0_10.append(p12);
        this.e = ((net.jpountz.a.c) net.jpountz.a.e.b(v0_10.toString()));
        long v0_3 = new StringBuilder();
        v0_3.append("net.jpountz.xxhash.StreamingXXHash32");
        v0_3.append(p12);
        v0_3.append("$Factory");
        this.g = ((net.jpountz.a.a$a) net.jpountz.a.e.b(v0_3.toString()));
        long v0_9 = new StringBuilder();
        v0_9.append("net.jpountz.xxhash.XXHash64");
        v0_9.append(p12);
        this.f = ((net.jpountz.a.d) net.jpountz.a.e.b(v0_9.toString()));
        long v0_15 = new StringBuilder();
        v0_15.append("net.jpountz.xxhash.StreamingXXHash64");
        v0_15.append(p12);
        v0_15.append("$Factory");
        this.h = ((net.jpountz.a.b$a) net.jpountz.a.e.b(v0_15.toString()));
        AssertionError v12_6 = new byte[100];
        long v0_17 = new java.util.Random();
        v0_17.nextBytes(v12_6);
        long v0_18 = v0_17.nextInt();
        int v7 = this.e.a(v12_6, 0, v12_6.length, v0_18);
        byte[] v1_6 = this.a(v0_18);
        v1_6.a(v12_6, 0, v12_6.length);
        int v8 = v1_6.a();
        long v9 = ((long) v0_18);
        long v0_20 = this.f.a(v12_6, 0, v12_6.length, v9);
        long v2_1 = this.a(v9);
        v2_1.a(v12_6, 0, v12_6.length);
        long v2_2 = v2_1.a();
        if (v7 == v8) {
            if (v0_20 == v2_2) {
                return;
            } else {
                throw new AssertionError();
            }
        } else {
            throw new AssertionError();
        }
    }

Method org.apache.http.entity.mime.MultipartEntity.generateBoundary() calling method java.util.Random.<init>()


    protected String generateBoundary()
    {
        String v0_1 = new StringBuilder();
        java.util.Random v1_1 = new java.util.Random();
        int v2_2 = (v1_1.nextInt(11) + 30);
        int v3 = 0;
        while (v3 < v2_2) {
            v0_1.append(org.apache.http.entity.mime.MultipartEntity.MULTIPART_CHARS[v1_1.nextInt(org.apache.http.entity.mime.MultipartEntity.MULTIPART_CHARS.length)]);
            v3++;
        }
        return v0_1.toString();
    }

Method com.views.HorizontalRecyclerView$b.<init>() calling method java.util.Random.<init>()


    public HorizontalRecyclerView$b(com.views.HorizontalRecyclerView p1, android.content.Context p2, int p3)
    {
        this.a = p1;
        this.c = 0;
        this.d = -1;
        this.e = -1;
        this.f = 1;
        this.g = 0;
        this.c = p3;
        this.d = (new java.util.Random().nextInt(5) + 1);
        return;
    }

Method com.views.HorizontalRecyclerView$b.<init>() calling method java.util.Random.<init>()


    public HorizontalRecyclerView$b(com.views.HorizontalRecyclerView p1, android.content.Context p2, int p3, int p4)
    {
        this.a = p1;
        this.c = 0;
        this.d = -1;
        this.e = -1;
        this.f = 1;
        this.g = 0;
        this.c = p3;
        this.e = p4;
        this.d = (new java.util.Random().nextInt(5) + 1);
        return;
    }

Method com.library.controls.CrossFadeImageView.<clinit>() calling method java.util.Random.<init>()


    static CrossFadeImageView()
    {
        java.util.Random v0_1 = new int[6];
        v0_1 = {2131230887, 2131230889, 2131230893, 2131230897, 2131230898, 2131230902};
        com.library.controls.CrossFadeImageView.defaultResIds = v0_1;
        com.library.controls.CrossFadeImageView.random = new java.util.Random();
        return;
    }