Documentation ¶
Overview ¶
Package rand provides public goroutine-safe random function. The implementation is similar to grpc random functions. Additionally, the seed function is provided to be called from the outside, and the random functions are provided as a struct's methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeRand ¶
type SafeRand struct {
// contains filtered or unexported fields
}
SafeRand is the safe random functions struct.
func NewSafeRand ¶
NewSafeRand creates a SafeRand using the given seed.
Click to show internal directories.
Click to hide internal directories.