rand

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 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