rands
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package rands contains utility functions for randomness.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcHexString¶
HexString returns a string of n cryptographically random lowercasehex characters.
That is, HexString(3) returns something like "0fc", containing 12bits of randomness.
funcIntN¶added inv1.68.0
IntN is like rand.IntN, but it is seeded on the stack and does not allocateor lock any RNG state.
Types¶
This section is empty.