randutil

package
v0.0.0-...-b60358c Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandAlphabet

func RandAlphabet(randomGenerator *rand.Rand, alphabet []byte, n uint64) []byte

RandAlphabet returns a buffer a size n filled with random values taken from alphabet

func RandString

func RandString(randomGenerator *rand.Rand, alphabet string, n uint64) string

TODO: handle runes instead of bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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