randx

package
v3.22.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package randx contains math/rand extensions. The functions exported by this package do not use a CSRNG so you SHOULD NOT use these strings for, e.g., generating passwords.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeCapitalization

func ChangeCapitalization(source string) (dest string)

ChangeCapitalization returns a new string where the capitalization of each character is changed at random. Note that this function uses a non-cryptographically-secure generator. So, we SHOULD NOT use it for generating passwords.

func Letters

func Letters(n int) string

Letters return a string composed of random letters. Note that this function uses a non-cryptographically-secure generator.

func LettersUppercase

func LettersUppercase(n int) string

LettersUppercase return a string composed of random uppercase letters. Note that this function uses a non-cryptographically-secure generator. So, we SHOULD NOT use it for generating passwords.

Types

This section is empty.

Jump to

Keyboard shortcuts

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