lxrand

package
v1.2.10-rc.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sequence

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

func (*Sequence) Byte

func (r *Sequence) Byte() byte

Byte Return a random byte

func (*Sequence) Hash

func (r *Sequence) Hash() [32]byte

Hash Return a 32 byte array of random bytes

func (*Sequence) SetRandomSequence

func (r *Sequence) SetRandomSequence(state uint64, seed [32]byte)

SetState Modifies the state using the given seed and state. Any call to SetState will create a different sequence of random values.

func (*Sequence) Slice

func (r *Sequence) Slice(length int) (slice []byte)

Slice Return a slice of the specified length of random bytes

func (*Sequence) Uint

func (r *Sequence) Uint() int

Int Return a random int

Jump to

Keyboard shortcuts

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