Documentation ¶
Index ¶
- Constants
- func Bytes(b []byte) uint64
- func F32(v float32) uint64
- func F64(v float64) uint64
- func FNV32(v uint32) uint32
- func FNV32a(v uint32) uint32
- func FNV64(v uint64) uint64
- func FNV64a(v uint64) uint64
- func Hash(bytes unsafe.Pointer, length uint64, seed uint64) uint64
- func HashBytes(b []byte) uint64
- func I16(v int16) uint64
- func I32(v int32) uint64
- func I64(v int64) uint64
- func I8(v int8) uint64
- func MakeSecret(seed uint64) [4]uint64
- func Next() uint64
- func NextFloat() float64
- func NextGaussian() float64
- func SetSeed(s uint64)
- func String(s string) uint64
- func U16(v uint16) uint64
- func U32(v uint32) uint64
- func U64(v uint64) uint64
- func U8(v uint8) uint64
- func WithSecret(bytes unsafe.Pointer, length uint64, secret *[4]uint64) uint64
- type Rand
Constants ¶
View Source
const (
DefaultSeed uint64 = 0xa0761d6478bd642f // s0
)
Variables ¶
This section is empty.
Functions ¶
func MakeSecret ¶
func NextGaussian ¶
func NextGaussian() float64
Types ¶
Click to show internal directories.
Click to hide internal directories.