randstring

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandString

func RandString(src *rand.Rand, n int) string

RandString generates a random string with length n. Not cryptographically safe. https://stackoverflow.com/questions/22892120

func RandomIdentifier added in v0.5.1

func RandomIdentifier(idLen int) string

RandomIdentifier generates a random string identifier.

Types

This section is empty.

Jump to

Keyboard shortcuts

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