xrand

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlphaNumeric

func AlphaNumeric(n int) string

AlphaNumeric returns an n-length long string containing random alphanumeric characters (both lower and uppercase are possible). Panics when n is not >1.

func RandomBytes

func RandomBytes(n int) ([]byte, error)

RandomBytes returns a n-length slice containing random bytes. Panics when n is not >1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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