mcp.auth.csprng

Undocumented in source.

Members

Classes

CsprngException
class CsprngException

Thrown when the operating system CSPRNG cannot be read.

Functions

cryptoRandomBytes
ubyte[] cryptoRandomBytes(size_t n)

Allocate and return n cryptographically secure random bytes.

cryptoRandomFill
void cryptoRandomFill(ubyte[] buf)

Fill buf with cryptographically secure random bytes from the OS CSPRNG. Throws CsprngException if the OS CSPRNG is unavailable.