2020-11-14 03:19:56 +00:00
|
|
|
.class public abstract Ly/o/a;
|
|
|
|
.super Ly/o/c;
|
2020-11-13 19:18:44 +00:00
|
|
|
.source "PlatformRandom.kt"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-direct {p0}, Ly/o/c;-><init>()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public abstract getImpl()Ljava/util/Random;
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public nextBits(I)I
|
|
|
|
.locals 2
|
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {p0}, Ly/o/a;->getImpl()Ljava/util/Random;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
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
|
2020-11-12 02:11:44 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string v0, "array"
|
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-static {p1, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {p0}, Ly/o/a;->getImpl()Ljava/util/Random;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {v0, p1}, Ljava/util/Random;->nextBytes([B)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-object p1
|
2020-11-13 19:18:44 +00:00
|
|
|
.end method
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public nextInt()I
|
|
|
|
.locals 1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {p0}, Ly/o/a;->getImpl()Ljava/util/Random;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/Random;->nextInt()I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
return v0
|
|
|
|
.end method
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public nextInt(I)I
|
|
|
|
.locals 1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {p0}, Ly/o/a;->getImpl()Ljava/util/Random;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {v0, p1}, Ljava/util/Random;->nextInt(I)I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result p1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
return p1
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public nextLong()J
|
|
|
|
.locals 2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {p0}, Ly/o/a;->getImpl()Ljava/util/Random;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/Random;->nextLong()J
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-wide v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
return-wide v0
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|