rand

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Digital = &Rand{[]byte("0123456789")}
	Hex     = &Rand{[]byte("0123456789abcdefabcdef")}
	Base64  = &Rand{[]byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_")}
)

Functions

This section is empty.

Types

type Rand

type Rand struct {
	KeyTable []byte
}

func (*Rand) Bytes

func (r *Rand) Bytes(size int) []byte

func (*Rand) String

func (r *Rand) String(size int) string

Jump to

Keyboard shortcuts

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