mirror of
https://github.com/jimeh/rands.git
synced 2026-02-19 03:16:39 +00:00
16 lines
548 B
Go
16 lines
548 B
Go
// Package rands provides a suite of functions that use crypto/rand to generate
|
|
// cryptographically secure random strings in various formats, as well as ints
|
|
// and bytes.
|
|
//
|
|
// All functions which produce strings from a alphabet of characters uses
|
|
// rand.Int() to ensure a uniform distribution of all possible values.
|
|
//
|
|
// rands is intended for use in production code where random data generation is
|
|
// required. All functions have a error return value, which should be
|
|
// checked.
|
|
package rands
|
|
|
|
import "errors"
|
|
|
|
var Err = errors.New("rands")
|