Documentation ¶
Index ¶
Constants ¶
View Source
const MASK uint64 = (1 << 48) - 1 // Mask for 48 bits
View Source
const MAX uint64 = 0x0000FFFFFFFFFFFF
View Source
const ONE uint64 = 1
View Source
const ZERO uint64 = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LCG ¶
type LCG struct {
// contains filtered or unexported fields
}
LCG is a linear congruential generator to generate pseudo-random numbers and fill out a 2^64 byte space without hitting the same number twice.
Click to show internal directories.
Click to hide internal directories.