randbytes

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRand

func NewRand() io.Reader

NewRand creates a new random reader with a time source.

Types

type Rand

type Rand struct {
	rand.Source
}

Rand creates a stream of non-crypto quality random bytes

func (*Rand) Read

func (r *Rand) Read(p []byte) (n int, err error)

Read satisfies io.Reader

Jump to

Keyboard shortcuts

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