Refactor[entropy]: nil out rand pointer after we put it back into the pool
This commit is contained in:
parent
325ccd9d71
commit
917be2058d
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue