rand

package
v0.0.0-...-b83fb8d Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: GPL-2.0 Imports: 6 Imported by: 2

README

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewMutexReader

func NewMutexReader(reader io.Reader) io.Reader

func NewPerCPUReader

func NewPerCPUReader(initfunc func() io.Reader) io.Reader

func Read

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

Types

type MutexReader

type MutexReader struct {
	// contains filtered or unexported fields
}

func (*MutexReader) Read

func (mr *MutexReader) Read(d []byte) (n int, err error)

type PerCPUReader

type PerCPUReader struct {
	// contains filtered or unexported fields
}

func (*PerCPUReader) Read

func (pcr *PerCPUReader) Read(d []byte) (n int, err error)

type Salsa20Rand

type Salsa20Rand struct {
	// contains filtered or unexported fields
}

func NewSalsa20Rand

func NewSalsa20Rand(base io.Reader) *Salsa20Rand

func (*Salsa20Rand) Read

func (sr *Salsa20Rand) Read(d []byte) (n int, err error)

Jump to

Keyboard shortcuts

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