package
Version:
v0.0.0-...-a0bbfda
Opens a new window with list of versions in this module.
Published: Dec 18, 2024
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 23
Opens a new window with list of known importers.
Documentation
¶
Package rand implements a cryptographically secure pseudorandom number
generator.
Reader is the default reader.
Init can be called to make sure /dev/urandom is pre-opened on kernels that
do not support getrandom(2).
Int63 is analogous to the standard library's math/rand.Int63.
Int63n is analogous to the standard library's math/rand.Int63n.
Read reads from the default reader.
Uint32 is analogous to the standard library's math/rand.Uint32.
Uint64 is analogous to the standard library's math/rand.Uint64.
RNG exposes convenience functions based on a cryptographically secure
io.Reader.
RNGFrom returns a new RNG. r must be a cryptographically secure io.Reader.
Int63 is analogous to the standard library's math/rand.Int63.
Int63n is analogous to the standard library's math/rand.Int63n.
Uint16 is analogous to the standard library's math/rand.Uint16.
Uint32 is analogous to the standard library's math/rand.Uint32.
Uint64 is analogous to the standard library's math/rand.Uint64.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.