random

package
v1.0.31 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate32Bytes added in v1.0.17

func Generate32Bytes() []byte

Generate32Bytes generates a good random 32 byte slice

func GenerateKey

func GenerateKey() []byte

GenerateKey generates a good random key

func Seed

func Seed()

Seed the random number generator with a "good" random value

func SliceIndex added in v1.0.11

func SliceIndex[T any](arr []T) T

SliceIndex returns a random slice index

func StringBytes

func StringBytes(length int) []byte

StringBytes returns a random set of string bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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