random

package
v0.0.0-...-f47290f Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBytes

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

GenerateBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func GenerateHex

func GenerateHex(bytes int) (string, error)

GenerateHex returns a "byte * 2" hex string after encoding "byte" random bytes in hex

Types

This section is empty.

Jump to

Keyboard shortcuts

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