fix parameter name
This commit is contained in:
@@ -18,12 +18,12 @@ abstract class PRNG : Random() {
|
|||||||
): ByteArray
|
): ByteArray
|
||||||
|
|
||||||
override fun nextBits(
|
override fun nextBits(
|
||||||
count: Int,
|
bitCount: Int,
|
||||||
): Int {
|
): Int {
|
||||||
if (count !in 0..32) throw Exception()
|
if (bitCount !in 0..32) throw Exception()
|
||||||
if (count == 0) return 0
|
if (bitCount == 0) return 0
|
||||||
|
|
||||||
return generate(4).toInt() ushr (32 - count)
|
return generate(4).toInt() ushr (32 - bitCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|||||||
Reference in New Issue
Block a user