Documentation ¶
Overview ¶
Package xrand implements pseudo-random helpers for math/rand.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRand ¶
NewRand returns a seeded rand.Rand instance. The seed is based on the current time and a hash computed from runtime.fastrand64()'s byte sequence.
The returned rand.Rand instance provides pseudo-random numbers and is not suitable for security-sensitive work. See crypto/rand for a cryptographically secure random number generator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.