random

package
v2.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCharset

func SetCharset(c Charset)

func String

func String(length uint8) string

Types

type Charset

type Charset string
const (
	Alphanumeric Charset = Alphabetic + Numeric
	Alphabetic   Charset = "abcdefghijklmnopqrstuvwxyz" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	Numeric      Charset = "0123456789"
	Hex          Charset = Numeric + "abcdef"
)

type Random

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

func New

func New() *Random

func (*Random) SetCharset

func (r *Random) SetCharset(c Charset)

func (*Random) String

func (r *Random) String(length uint8) string

Jump to

Keyboard shortcuts

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