optimize nextBytes()
This commit is contained in:
@@ -26,7 +26,6 @@ class LCG internal constructor() : PRNG() {
|
||||
return buildList {
|
||||
while (size < count) {
|
||||
x = (a * x + c) % m
|
||||
|
||||
addAll(x.toUByteArray().takeLast(min(count - size, 6)))
|
||||
}
|
||||
}.toUByteArray()
|
||||
|
||||
Reference in New Issue
Block a user