Module crypto/random

crypto/random

Cryptographically secure random number generation. Uses OS entropy sources (getrandom on Linux, arc4random_buf on macOS, BCryptGenRandom on Windows, getentropy on WASI).

Example

{ random_u64, uuid_v4 } :: import "std/crypto/random";

id := uuid_v4();  // "550e8400-e29b-41d4-a716-446655440000"

Types

CryptoError struct
CryptoError

Trait Implementations

Constants

Unavailable constant (unknown)
Other constant (unknown)