bufDeterministic

actual fun bufDeterministic(size: Int, seed: UByteArray): UByteArray

The randombytes_buf_deterministic function stores size bytes into buf indistinguishable from random bytes without knowing seed. For a given seed, this function will always output the same sequence. size can be up to 2^31 (~8GB) because we use kotlin arrays and they are limited by Int primitive type seed is randombytes_SEEDBYTES bytes long. This function is mainly useful for writing tests, and was introduced in libsodium 1.0.12. Under the hood, it uses the ChaCha20 stream cipher.

expect fun bufDeterministic(size: Int, seed: UByteArray): UByteArray

The randombytes_buf_deterministic function stores size bytes into buf indistinguishable from random bytes without knowing seed. For a given seed, this function will always output the same sequence. size can be up to 2^31 (~8GB) because we use kotlin arrays and they are limited by Int primitive type seed is randombytes_SEEDBYTES bytes long. This function is mainly useful for writing tests, and was introduced in libsodium 1.0.12. Under the hood, it uses the ChaCha20 stream cipher.

actual fun bufDeterministic(size: Int, seed: UByteArray): UByteArray

The randombytes_buf_deterministic function stores size bytes into buf indistinguishable from random bytes without knowing seed. For a given seed, this function will always output the same sequence. size can be up to 2^31 (~8GB) because we use kotlin arrays and they are limited by Int primitive type seed is randombytes_SEEDBYTES bytes long. This function is mainly useful for writing tests, and was introduced in libsodium 1.0.12. Under the hood, it uses the ChaCha20 stream cipher.

actual fun bufDeterministic(size: Int, seed: UByteArray): UByteArray

The randombytes_buf_deterministic function stores size bytes into buf indistinguishable from random bytes without knowing seed. For a given seed, this function will always output the same sequence. size can be up to 2^31 (~8GB) because we use kotlin arrays and they are limited by Int primitive type seed is randombytes_SEEDBYTES bytes long. This function is mainly useful for writing tests, and was introduced in libsodium 1.0.12. Under the hood, it uses the ChaCha20 stream cipher.

actual fun bufDeterministic(size: Int, seed: UByteArray): UByteArray

The randombytes_buf_deterministic function stores size bytes into buf indistinguishable from random bytes without knowing seed. For a given seed, this function will always output the same sequence. size can be up to 2^31 (~8GB) because we use kotlin arrays and they are limited by Int primitive type seed is randombytes_SEEDBYTES bytes long. This function is mainly useful for writing tests, and was introduced in libsodium 1.0.12. Under the hood, it uses the ChaCha20 stream cipher.

actual fun bufDeterministic(size: Int, seed: UByteArray): UByteArray

The randombytes_buf_deterministic function stores size bytes into buf indistinguishable from random bytes without knowing seed. For a given seed, this function will always output the same sequence. size can be up to 2^31 (~8GB) because we use kotlin arrays and they are limited by Int primitive type seed is randombytes_SEEDBYTES bytes long. This function is mainly useful for writing tests, and was introduced in libsodium 1.0.12. Under the hood, it uses the ChaCha20 stream cipher.