random

package
v0.0.0-...-53bd342 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package random provides facilities to generate random values. It leverages the default Source of standard 'math/rand' package that is thread-safe.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(length int) string

String returns a randomly generated string that can contain numbers, uppercase and lowercase letters.

func StringSecure

func StringSecure(length int) (string, error)

StringSecure returns a cryptographically secure randomly generated string that can contain numbers, uppercase and lowercase letters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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