implement seed

This commit is contained in:
2025-08-04 13:28:08 +02:00
parent 9480d02021
commit 02eaa9ec59
2 changed files with 17 additions and 9 deletions

View File

@@ -5,6 +5,10 @@ import com.infendro.hash.HashFunction
import kotlin.random.Random
abstract class PRNG : Random() {
abstract fun seed(
seed: ByteArray,
)
abstract fun reseed(
entropy: ByteArray,
)