randutil

package
v0.38.6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CryptoRandInt64 added in v0.38.5

func CryptoRandInt64(random io.Reader, max int64) (int64, error)

Types

type CryptoRand

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

func NewCryptoRand

func NewCryptoRand(r io.Reader, s mrand.Source) CryptoRand

func (*CryptoRand) Int64n

func (cr *CryptoRand) Int64n(n int64) (int64, error)

func (*CryptoRand) Intn

func (cr *CryptoRand) Intn(n int) (int, error)

func (*CryptoRand) MustInt64n

func (cr *CryptoRand) MustInt64n(n int64) int64

func (*CryptoRand) MustIntn

func (cr *CryptoRand) MustIntn(n int) int

Jump to

Keyboard shortcuts

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