Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRand ¶
NewRand returns a prng, that is seeded with OS randomness. The OS randomness is obtained from crypto/rand, however, like with any math/rand.Rand object none of the provided methods are suitable for cryptographic usage.
Note that the returned instance of math/rand's Rand is not suitable for concurrent use by multiple goroutines.
For concurrent use, call Reseed to reseed math/rand's default source and use math/rand's top-level convenience functions instead.
func Reseed ¶
func Reseed()
Reseed conveniently re-seeds the default Source of math/rand with randomness obtained from crypto/rand.
Note that this does not make math/rand suitable for cryptographic usage.
Use math/rand's top-level convenience functions remain suitable for concurrent use by multiple goroutines.
Types ¶
This section is empty.