Default

The default implementation of CryptoRand.

The following APIs are used for procuring cryptographically secure random data:

Functions

Link copied to clipboard
open override fun nextBytes(buf: ByteArray): ByteArray

Fills the provided buf array with securely generated random data, procured from system sources. If the underlying system has not collected enough entropy yet, this function may block.