prng

package
v1.0.3023 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MD5PRNG = New(md5.New)

默认值

View Source
var SHA1PRNG = New(sha1.New)

Functions

This section is empty.

Types

type Prng

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

func New

func New(hash func() hash.Hash) *Prng

func NewWithSeed

func NewWithSeed(hash func() hash.Hash, seed []byte) *Prng

func (*Prng) Read

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

func (*Prng) SetSeed

func (this *Prng) SetSeed(seed []byte) *Prng

Jump to

Keyboard shortcuts

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