generate

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CryptoRandom added in v0.5.0

func CryptoRandom(n int) (string, error)

CryptoRandom generates a cryptographically-safe random number

func MathRandom added in v0.5.0

func MathRandom(n int) string

MathRandom generates a random string that does not need to be cryptographically secure This is preferred to CryptoRandom when you don't need the cryptographic security as it is not a drain on the entropy pool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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