Unexport randEntropy type and use exported Reader instead
This commit is contained in:
@ -10,10 +10,12 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type RandEntropy struct {
|
||||
var Reader io.Reader = &randEntropy{}
|
||||
|
||||
type randEntropy struct {
|
||||
}
|
||||
|
||||
func (*RandEntropy) Read(bytes []byte) (n int, err error) {
|
||||
func (*randEntropy) Read(bytes []byte) (n int, err error) {
|
||||
readBytes := GetEntropyMixed(len(bytes))
|
||||
copy(bytes, readBytes)
|
||||
return len(bytes), nil
|
||||
|
Reference in New Issue
Block a user