ddn.api.crypto.random

Random number generation API.

iface Random

Types 1

interfaceRandom

Interface for a cryptographically secure random number generator.

Methods
void nextBytes(ubyte[] buffer)Fills the provided buffer with random bytes.
uint nextUint()Generates a random unsigned 32-bit integer.
ulong nextUlong()Generates a random unsigned 64-bit integer.
uint nextUintBound(uint bound)Generates a random unsigned integer in the half-open interval `[0, bound)`.