mt19937

package
v0.0.0-...-a436ee8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	N          = 312
	M          = 156
	MATRIX_A   = 0xB5026F5AA96619E9
	UPPER_MASK = 0xFFFFFFFF80000000
	LOWER_MASK = 0x7FFFFFFF
)

Variables

This section is empty.

Functions

func NewRand

func NewRand() *rand.Rand

func NewRand64

func NewRand64() *rand.Rand

func NewSource

func NewSource() rand.Source

func NewSource64

func NewSource64() rand.Source64

Types

type KeyBlock

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

func NewKeyBlock

func NewKeyBlock(seed uint64) *KeyBlock

func (*KeyBlock) Seed

func (b *KeyBlock) Seed() uint64

func (*KeyBlock) Xor

func (b *KeyBlock) Xor(data []byte)

Jump to

Keyboard shortcuts

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