Documentation ¶
Overview ¶
Package seedrng provides a utility function seedrng.EnsureSeeded() to seed the main math/rand RNG exactly once.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureSeeded ¶
func EnsureSeeded()
EnsureSeeded seeds the math/rand PRNG on the first call; subsequent calls are no-ops. This allows EnsureSeeded() calls to be sprinkled around the codebase in packages that actively use the PRNG. That way, we always make sure the PRNG is seeded before it is used in anger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.