randutil

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

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

Go to latest
Published: Jan 26, 2025 License: MIT 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