randutil

package
v0.0.0-...-f66ea8c Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandByte

func RandByte(len uint64) []byte

func RandMd5

func RandMd5() []byte

func RandString

func RandString(n int, allowedChars ...[]rune) string

Types

type RandPool

type RandPool struct {
	sync.Pool
}

func NewRandPool

func NewRandPool() *RandPool

func (*RandPool) RandString

func (rp *RandPool) RandString(n int, letters []rune) string

func (*RandPool) Read

func (rp *RandPool) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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