discord-jadx/app/src/main/java/d0/c0/e.java

55 lines
1.3 KiB
Java

package d0.c0;
/* compiled from: XorWowRandom.kt */
public final class e extends c {
/* renamed from: c reason: collision with root package name */
public int f2406c;
public int d;
public int e;
public int f;
public int g;
public int h;
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) {
this.f2406c = i;
this.d = i2;
this.e = i3;
this.f = i4;
this.g = i5;
this.h = i6;
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());
}
@Override // d0.c0.c
public int nextBits(int i) {
return d.takeUpperBits(nextInt(), i);
}
@Override // d0.c0.c
public int nextInt() {
int i = this.f2406c;
int i2 = i ^ (i >>> 2);
this.f2406c = this.d;
this.d = this.e;
this.e = this.f;
int i3 = this.g;
this.f = i3;
int i4 = ((i2 ^ (i2 << 1)) ^ i3) ^ (i3 << 4);
this.g = i4;
int i5 = this.h + 362437;
this.h = i5;
return i4 + i5;
}
}