utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomBytes

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

func GenerateRandomHex

func GenerateRandomHex(n int) (string, error)

GenerateRandomHex generates a random hex string of length n*2. Example: n=16 -> returns 32 chars hex string.

func GenerateRandomHexOrPanic

func GenerateRandomHexOrPanic(n int) string

GenerateRandomHexOrPanic is useful for tests or initialization where error handling is hard.

Types

This section is empty.

Jump to

Keyboard shortcuts

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