rand

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRandUnexpectedLength = errors.New("rand: unexpected length")
	ErrRandNegativeLength   = errors.New("rand: negative length")
)

Functions

func RandomBase64URLString

func RandomBase64URLString(length int) (string, error)

RandomBase64URLString generates a cryptographically secure, URL-safe, Base64-encoded string.

func RandomBytes

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

RandomBytes generates a cryptographically secure random byte array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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