Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockedSource ¶
type LockedSource struct {
// contains filtered or unexported fields
}
LockedSource is taken from the Go "math/rand" package. The default rand functions use a similar type under the hood, this does not introduce any additional locking than using the default functions.
func NewLockedSourceFromSeed ¶
func NewLockedSourceFromSeed(seed int64) *LockedSource
func (*LockedSource) Int63 ¶
func (r *LockedSource) Int63() (n int64)
func (*LockedSource) Seed ¶
func (r *LockedSource) Seed(seed int64)
Click to show internal directories.
Click to hide internal directories.