Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomIndices ¶
GetRandomIndices returns indiceCount random indices from 0 to highestIndex.
func IndexInSlice ¶
IndexInSlice returns the index of given object o in array, and -1 if it is not in array.
func RandomInt ¶
RandomInt returns, as an int, a non-negative pseudo-random integer in [0,n) It panics if n <= 0
func RandomUInt64 ¶
func RandomUInt64() uint64
RandomUInt64 returns a random uint64
If we want a rand that's non-global and specific to gossip, we can establish one. Otherwise this uses the process-global locking RNG.
Types ¶
Click to show internal directories.
Click to hide internal directories.