randstring

package
v0.39.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 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 *mrand.Rand, n int) string

RandString generates a random string with length n. Not cryptographically safe. Pass nil to use a random seed. 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