2021-11-02 06:38:17 +00:00
|
|
|
package d0.c0;
|
2021-09-15 06:33:54 +00:00
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
2021-08-03 07:33:18 +00:00
|
|
|
/* compiled from: XorWowRandom.kt */
|
2022-03-07 09:34:54 +00:00
|
|
|
/* loaded from: classes3.dex */
|
2021-09-15 06:33:54 +00:00
|
|
|
public final class e extends c implements Serializable {
|
|
|
|
@Deprecated
|
|
|
|
private static final long serialVersionUID = 0;
|
|
|
|
private int addend;
|
|
|
|
private int v;
|
2021-11-02 06:38:17 +00:00
|
|
|
private int w;
|
2021-09-15 06:33:54 +00:00
|
|
|
|
|
|
|
/* renamed from: x reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
private int f3180x;
|
2021-09-15 06:33:54 +00:00
|
|
|
|
|
|
|
/* renamed from: y reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
private int f3181y;
|
2021-09-15 06:33:54 +00:00
|
|
|
|
|
|
|
/* renamed from: z reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
private int f3182z;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
2021-09-15 06:33:54 +00:00
|
|
|
/* compiled from: XorWowRandom.kt */
|
2022-03-07 09:34:54 +00:00
|
|
|
/* loaded from: classes3.dex */
|
2021-09-15 06:33:54 +00:00
|
|
|
public static final class a {
|
|
|
|
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static {
|
|
|
|
new a(null);
|
|
|
|
}
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
public e(int i, int i2) {
|
|
|
|
this(i, i2, 0, 0, ~i, (i << 10) ^ (i2 >>> 4));
|
|
|
|
}
|
|
|
|
|
|
|
|
public e(int i, int i2, int i3, int i4, int i5, int i6) {
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3180x = i;
|
|
|
|
this.f3181y = i2;
|
|
|
|
this.f3182z = i3;
|
2021-11-02 06:38:17 +00:00
|
|
|
this.w = i4;
|
2021-09-15 06:33:54 +00:00
|
|
|
this.v = i5;
|
|
|
|
this.addend = i6;
|
2021-08-03 07:33:18 +00:00
|
|
|
int i7 = i | i2 | i3 | i4 | i5;
|
|
|
|
if (i7 != 0) {
|
|
|
|
for (int i8 = 0; i8 < 64; i8++) {
|
|
|
|
nextInt();
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
throw new IllegalArgumentException("Initial state must have at least one non-zero element.".toString());
|
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // d0.c0.c
|
2021-08-03 07:33:18 +00:00
|
|
|
public int nextBits(int i) {
|
|
|
|
return d.takeUpperBits(nextInt(), i);
|
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // d0.c0.c
|
2021-08-03 07:33:18 +00:00
|
|
|
public int nextInt() {
|
2022-03-28 08:10:50 +00:00
|
|
|
int i = this.f3180x;
|
2021-08-03 07:33:18 +00:00
|
|
|
int i2 = i ^ (i >>> 2);
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3180x = this.f3181y;
|
|
|
|
this.f3181y = this.f3182z;
|
|
|
|
this.f3182z = this.w;
|
2021-09-15 06:33:54 +00:00
|
|
|
int i3 = this.v;
|
2021-11-02 06:38:17 +00:00
|
|
|
this.w = i3;
|
2021-08-03 07:33:18 +00:00
|
|
|
int i4 = ((i2 ^ (i2 << 1)) ^ i3) ^ (i3 << 4);
|
2021-09-15 06:33:54 +00:00
|
|
|
this.v = i4;
|
|
|
|
int i5 = this.addend + 362437;
|
|
|
|
this.addend = i5;
|
2021-08-03 07:33:18 +00:00
|
|
|
return i4 + i5;
|
|
|
|
}
|
|
|
|
}
|