rand

package
v1.369.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

This section is empty.

Types

type Generator added in v1.367.0

type Generator struct {
	// contains filtered or unexported fields
}

Generator for rand.

func NewGenerator added in v1.367.0

func NewGenerator(reader Reader) *Generator

NewGenerator for rand.

func (*Generator) GenerateBytes added in v1.367.0

func (g *Generator) GenerateBytes(size uint32) ([]byte, error)

GenerateBytes for rand.

func (*Generator) GenerateLetters added in v1.367.0

func (g *Generator) GenerateLetters(size uint32) (string, error)

GenerateLetters will generate using letters.

func (*Generator) GenerateString added in v1.367.0

func (g *Generator) GenerateString(size uint32) (string, error)

GenerateString will generate using letters and symbols.

func (*Generator) Read added in v1.367.0

func (g *Generator) Read(b []byte) (int, error)

Read for rand.

type Reader added in v1.367.0

type Reader io.Reader

Reader is just rand.Reader.

func NewReader added in v1.367.0

func NewReader() Reader

NewReader for rand.

Jump to

Keyboard shortcuts

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