crand

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const AddressLength = 20

AddressLength represents Ethereum address length

Variables

This section is empty.

Functions

func BigInt

func BigInt(max *big.Int) *big.Int

func NewSource

func NewSource() rand.Source

func NewSource64

func NewSource64() rand.Source64

Types

type Rand

type Rand struct {
	*rand.Rand
	rand.Source
}

func NewRand

func NewRand() *Rand

func (*Rand) Address

func (r *Rand) Address() [AddressLength]byte

type Source

type Source struct{}

Source doesn't respect a seed

func (Source) Int63

func (s Source) Int63() int64

func (Source) Seed

func (s Source) Seed(_ int64)

type Source64

type Source64 struct {
	Source
}

func (Source64) Uint64

func (s Source64) Uint64() uint64

Jump to

Keyboard shortcuts

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