random

package
v0.0.0-...-3a7a4e7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package random provides some general purpose cryptographically pseudo-random utilities.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidLen = errors.New("invalid length")

Functions

func GetRandBase64Str

func GetRandBase64Str(len int) (string, error)

GetRandBase64Str creates a cryptographically randomly generated set of bytes with the length of len which is returned as base64 encoded string.

func GetRandByteArray

func GetRandByteArray(len int) (data []byte, err error)

GetRandByteArray creates a cryptographically randomly generated set of bytes with the length of len.

Types

This section is empty.

Jump to

Keyboard shortcuts

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