crypto.rand.internal #
Copyright (c) 2019-2026 Alexander Medvednikov. All rights reserved. Use of this source code is governed by an MIT license that can be found in the LICENSE file.
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.