rand

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(n int, opts ...Option) []byte

Bytes returns n bytes in random which can be used to generate an iv.

func String

func String(n int, opts ...Option) string

String returns a string including n bytes in random which can be used to generate an iv.

Types

type Config

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

func (*Config) Apply

func (c *Config) Apply(opts ...Option) *Config

type Option

type Option func(conf *Config)

func WithWeak

func WithWeak() Option

WithWeak sets weak to config.

Jump to

Keyboard shortcuts

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