lockedrand

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource(seed int64) rand.Source

NewSource returns a new LockedSource

Types

type LockedSource

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

LockedSource is a simple locked random source, similar to the one implemented but not exported in math/rand.

func (*LockedSource) Int63

func (l *LockedSource) Int63() int64

func (*LockedSource) Seed

func (l *LockedSource) Seed(seed int64)

func (*LockedSource) Uint64

func (l *LockedSource) Uint64() uint64

Jump to

Keyboard shortcuts

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