rand

package
v0.0.0-...-6a88ae7 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: Apache-2.0, MIT Imports: 5 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 = &bufferedReader{r: bufio.NewReader(&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