lrand

package
v0.0.0-...-157c9c8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ErrDoNotSeed = lerr.Str("Do not seed CryptoSource")

ErrDoNotSeed is the panic value is Seed is called on a CryptoSource.

Variables

This section is empty.

Functions

func Int63

func Int63() int64

Int63 is used to generate an int64 from crypto/rand.

func New

func New() *rand.Rand

Source returns a *rand.Rand seeded from crypto/rand

Types

type CryptoSource

type CryptoSource struct{}

CryptoSource fulfills rand.Source

func (CryptoSource) Int63

func (CryptoSource) Int63() int64

Int63 fulfills rand.Source

func (CryptoSource) Seed

func (CryptoSource) Seed(seed int64)

Seed is required for rand.Source, but should not be used.

Jump to

Keyboard shortcuts

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