# crypto/rand Generate cryptographically secure random bytes from the OS CSPRNG. Returns a vector of byte values (each 0-255). ## Syntax
[crypto/rand $n]
## Parameters - `$n` — Number of bytes to generate (1-4096) ## Examples
[crypto/rand 16]    # @{ 0x12 0xab 0x09 ... }
[crypto/rand 32]
## Returns Vector of numbers (one per byte), or `%Err{ message "..." }` if `$n` is out of range. ## See Also `crypto/rand-hex`, `crypto/sha256`, `crypto/encrypt`