prng

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSeededRand

func BuildSeededRand(datas ...[]byte) rand.Source

BuildSeededRand builds a random source seeded by data.

func BuildSeededReader added in v1.12.2

func BuildSeededReader(datas ...[]byte) io.Reader

BuildSeededReader builds a random reader seeded by data.

NOTE: the reader is not safe for concurrent use.

func SourceToReader added in v1.12.2

func SourceToReader(src rand.Source) io.Reader

SourceToReader builds an io.Reader from a rand.Source.

NOTE: the reader is not safe for concurrent use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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