uRandStrings

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength            = errors.New("invalid length")
	ErrFailedToMakeRandomString = errors.New("failed to make random string")
)

Functions

func GetRandomNumbers

func GetRandomNumbers(length int) (string, error)

func GetRandomStringAll

func GetRandomStringAll(length int) (string, error)

func GetRandomStringClean

func GetRandomStringClean(length int) (string, error)

func IsLetter

func IsLetter(s string) bool

func SecureRandomBytes

func SecureRandomBytes(length int) ([]byte, error)

SecureRandomBytes returns the requested number of bytes using crypto/rand

Types

This section is empty.

Jump to

Keyboard shortcuts

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