Refactor[entropy]: nil out rand pointer after we put it back into the pool

This commit is contained in:
kayos@tcp.direct 2023-09-06 23:39:14 -07:00
parent 325ccd9d71
commit 917be2058d
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

View File

@ -52,6 +52,7 @@ func AcquireRand() *rand.Rand {
func ReleaseRand(r *rand.Rand) {
lolXD.Put(r)
r = nil
}
// RandomStrChoice returns a random item from an input slice of strings.