optimize nextBytes()

This commit is contained in:
2025-12-13 23:51:08 +01:00
parent 3effa09602
commit d4be1689e2
3 changed files with 23 additions and 4 deletions

View File

@@ -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()