Documentation ¶
Index ¶
- func ChanSize(size int) func(*Source)
- func ForceIgnoreRollover(forceIgnoreRollover bool) func(*Source)
- func NewRandSrc(options ...func(*Source)) <-chan uint64
- func Repeat(repeat bool) func(*Source)
- func RolloverThresh(rolloverThresh uint64) func(*Source)
- func Seed(seed int64) func(*Source)
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForceIgnoreRollover ¶
ForceIgnoreRollover specifies whether RolloverThresh should be ignored. If this is set to true, rand generation does not reset.
func NewRandSrc ¶
NewRandSrc returns a channel where random numbers are published
func RolloverThresh ¶
RolloverThresh specifies the number of rand generations after which to reset. If this is not set, rand generation does not reset
Types ¶
Click to show internal directories.
Click to hide internal directories.