Help us shape the future of Go! Take the 2026 Go Developer Survey

rand

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package rand implements a cryptographically secure pseudorandom number generator.

Index

Constants

This section is empty.

Variables

View Source
var Reader io.Reader = &reader{}

Reader is the default reader.

Functions

func Init

func Init() error

Init can be called to make sure /dev/urandom is pre-opened on kernels that do not support getrandom(2).

func Read

func Read(b []byte) (int, error)

Read reads from the default reader.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL