CryptoRand

abstract class CryptoRand(source)

A source for obtaining random data from the system, suitable for use in cryptographic operations and/or seeding of Pseudorandom Number Generators (PRNGs).

See also

Inheritors

Types

Link copied to clipboard

The default implementation of CryptoRand.

Functions

Link copied to clipboard
abstract 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.