rands

package
v1.54.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: BSD-3-Clause Imports: 2 Imported by: 5

Documentation

Overview

Package rands contains utility functions for randomness.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HexString

func HexString(n int) string

HexString returns a string of n cryptographically random lowercase hex characters.

That is, HexString(3) returns something like "0fc", containing 12 bits of randomness.

Types

This section is empty.

Jump to

Keyboard shortcuts

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