randstring

package
v0.57.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 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 n ASCII letters. A nil source uses crypto/rand directly; a supplied source preserves its deterministic sequence and is not secure. Failure to obtain system entropy panics. A negative length panics.

func RandomIdentifier

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