Discover Packages
github.com/hashicorp/go-kms-wrapping/entropy/v2
package
module
Version:
v2.0.1
Opens a new window with list of versions in this module.
Published: Dec 19, 2023
License: MPL-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
README
README
¶
Entropy Package
This package is split into its own Go module so that importers just wanting
entropy do not need the full set of dependencies used by the main module.
Expand ▾
Collapse ▴
Documentation
¶
func NewMockRandomReader() *Reader
provide a mock entropy.Reader
Read reads exactly len(p) bytes from r into p.
If r returns an error having read at least len(p) bytes, the error is dropped.
It returns the number of bytes copied and an error if fewer bytes were read.
On return, n == len(p) if and only if err == nil.
type Sourcer interface {
GetRandom(bytes int ) ([]byte , error )
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.