Documentation ¶
Index ¶
Constants ¶
View Source
const HmacSHA1Len = 10
Variables ¶
View Source
var BufPool = sync.Pool{New: func() interface{} { return &bytes.Buffer{} }}
Functions ¶
func AppendRandBytes ¶
Types ¶
type XorShift128Plus ¶
type XorShift128Plus struct {
// contains filtered or unexported fields
}
XorShift128Plus - a pseudorandom number generator
func (*XorShift128Plus) InitFromBin ¶
func (r *XorShift128Plus) InitFromBin(bin []byte)
func (*XorShift128Plus) InitFromBinAndLength ¶
func (r *XorShift128Plus) InitFromBinAndLength(bin []byte, length int)
func (*XorShift128Plus) Next ¶
func (r *XorShift128Plus) Next() uint64
Click to show internal directories.
Click to hide internal directories.