The highest tagged major version is
v4.
package
Version:
v3.0.0
Opens a new window with list of versions in this module.
Published: Mar 5, 2019
License: MPL-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 119
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.