Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init provides best-effort seeding (which is better than running with Go's default seed of 1). If `/dev/urandom` is available, Init() will seed Go's runtime with entropy from `/dev/urandom` and return true because the runtime was securely seeded. If Init() has already initialized the random number or it had failed to securely initialize the random number generation, Init() will return false. See MustInit().
func MustInit ¶
func MustInit()
MustInit provides guaranteed secure seeding. If `/dev/urandom` is not available, MustInit will panic() with an error indicating why reading from `/dev/urandom` failed. MustInit() will upgrade the seed if for some reason a call to Init() failed in the past.
Types ¶
This section is empty.