rand

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSalt

func NewSalt(length int) ([]byte, error)

NewSalt creates a new random salt.

Types

type RandomSequence

type RandomSequence string

RandomSequence represents a random sequence.

func NewRandomSequence

func NewRandomSequence(length int) (RandomSequence, error)

NewRandomSequence creates a new random sequence.

func (RandomSequence) String

func (seq RandomSequence) String() string

String returns the string of the random sequence.

type Salt

type Salt string

Salt represents a random salt.

Jump to

Keyboard shortcuts

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