rand

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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