Discover Packages
github.com/krhubert/gotest
go
cryptotest
randtest
package
Version:
v0.0.0-...-0bbbf19
Opens a new window with list of versions in this module.
Published: Oct 16, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Int returns a uniform random value in [0, max). It panics if max <= 0.
Prime returns a number of the given bit length that is prime with high probability.
Prime will return error for any error returned by rand.Read or if bits < 2.
Read is a helper function that calls Reader.Read using io.ReadFull.
On return, n == len(b) if and only if err == nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.