rand

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAESKey256

func NewAESKey256() string

func NewNumber

func NewNumber(length int) string

NewNumber returns a new random string of the provided length, consisting of the standard number source string. It panics if source length is wrong (<1 or >256) or rand.Read occurs an error.

func NewString

func NewString(length int) string

NewString returns a new random string of the provided length, consisting of the standard source string. It panics if source length is wrong (<1 or >256) or rand.Read occurs an error.

func NewWithSource

func NewWithSource(length int, source string) string

NewWithSource returns a new random string of the provided length, consisting of the provided source string. It panics if source length is wrong (<1 or >256) or rand.Read occurs an error.

func RandInt

func RandInt(min, max int) int

RandInt returns int pseudo-random number in [min, max).

func Std16Source

func Std16Source() string

func StdNumberSource

func StdNumberSource() string

StdNumberSource returns standard number source string.

func StdSource

func StdSource() string

StdSource returns standard source string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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