further optimize HMAC-DRBG

This commit is contained in:
2026-01-30 15:03:28 +01:00
parent 89e7569fa7
commit 2c6fe0a7d9
2 changed files with 22 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ import com.infendro.hash.sha2.`SHA-256`
import com.infendro.random.PRNG
import kotlin.properties.Delegates.notNull
class LCG internal constructor() : PRNG() {
class LCG : PRNG() {
private val a: Long = 25214903917L
private val c: Long = 11L
private val mask: Long = (1L shl 48) - 1