rand

package
v0.0.0-...-5278192 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCryptoSafeRandomData

func GenerateCryptoSafeRandomData(b []byte) error

GenerateCryptoSafeRandomData fills b with cryptographically-safe random data.

func GenerateCryptoSafeRandomDataN

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

GenerateCryptoSafeRandomDataN returns a slice of bytes of length n, filled with cryptographically-safe random data.

func GenerateUuid

func GenerateUuid() string

GenerateUuid returns a UUID in string format (including hyphens).

Types

This section is empty.

Jump to

Keyboard shortcuts

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