apkfuckery/com.discord/smali_classes2/s/w/a.smali
2019-12-13 03:35:12 +01:00

121 lines
2 KiB
Smali

.class public abstract Ls/w/a;
.super Ls/w/c;
.source "PlatformRandom.kt"
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ls/w/c;-><init>()V
return-void
.end method
# virtual methods
.method public abstract getImpl()Ljava/util/Random;
.end method
.method public nextBits(I)I
.locals 2
invoke-virtual {p0}, Ls/w/a;->getImpl()Ljava/util/Random;
move-result-object v0
invoke-virtual {v0}, Ljava/util/Random;->nextInt()I
move-result v0
rsub-int/lit8 v1, p1, 0x20
ushr-int/2addr v0, v1
neg-int p1, p1
shr-int/lit8 p1, p1, 0x1f
and-int/2addr p1, v0
return p1
.end method
.method public nextBytes([B)[B
.locals 1
if-eqz p1, :cond_0
invoke-virtual {p0}, Ls/w/a;->getImpl()Ljava/util/Random;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/util/Random;->nextBytes([B)V
return-object p1
:cond_0
const-string p1, "array"
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public nextFloat()F
.locals 1
invoke-virtual {p0}, Ls/w/a;->getImpl()Ljava/util/Random;
move-result-object v0
invoke-virtual {v0}, Ljava/util/Random;->nextFloat()F
move-result v0
return v0
.end method
.method public nextInt()I
.locals 1
invoke-virtual {p0}, Ls/w/a;->getImpl()Ljava/util/Random;
move-result-object v0
invoke-virtual {v0}, Ljava/util/Random;->nextInt()I
move-result v0
return v0
.end method
.method public nextInt(I)I
.locals 1
invoke-virtual {p0}, Ls/w/a;->getImpl()Ljava/util/Random;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/util/Random;->nextInt(I)I
move-result p1
return p1
.end method
.method public nextLong()J
.locals 2
invoke-virtual {p0}, Ls/w/a;->getImpl()Ljava/util/Random;
move-result-object v0
invoke-virtual {v0}, Ljava/util/Random;->nextLong()J
move-result-wide v0
return-wide v0
.end method