Skip to content

crypto.rand.internal

Constants #

const C.SYS_getrandom int

fn bytes #

fn bytes(bytes_needed int) ![]u8

bytes returns an array filled from the operating system's random source.

fn read #

fn read(mut buffer []u8) !

read fills buffer with random bytes from the OS.

fn (ReadError) msg #

fn (err ReadError) msg() string

msg returns the error message.