package
Version:
v0.0.0-...-dfba71b
Opens a new window with list of versions in this module.
Published: Dec 9, 2020
License: BSD-2-Clause, MPL-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package random provides facilities for generating
random or pseudorandom cryptographic objects.
Bits chooses a uniform random BigInt with a given maximum BitLen.
If 'exact' is true, choose a BigInt with _exactly_ that BitLen, not less
Bytes fills a slice with random bytes from rand.
Int chooses a uniform random big.Int less than a given modulus
New returns a new cipher.Stream that gets random data from Go's crypto/rand package.
The resulting cipher.Stream can be used in multiple threads.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.