Closed cristinaleonr closed 1 year ago
This PR changes the mathx package to use the default Source from math/rand, which unlike NewSource, is safe for concurrent use.
mathx
Source
math/rand
NewSource
Since go 1.20, the math/rand package automatically seeds the default Source with a random value.
This change is
Fixes https://github.com/m-lab/locate/issues/168
This PR changes the
mathx
package to use the defaultSource
frommath/rand
, which unlikeNewSource
, is safe for concurrent use.Since go 1.20, the
math/rand
package automatically seeds the defaultSource
with a random value.This change is