You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this fails because math/rand/v2.Rand != math/rand.Rand.
This isn't a huge issue, but thought it's worth flagging anyways. Perhaps one way to solve this would be to update implementations of the Jitter interface to accept an interface instead of *math.Rand
With the release of Go 1.22, there's a new version of the
math/rand
package.At present, it's not possible to use a randomness source created by v2 with jitterbug, e.g.
this fails because
math/rand/v2.Rand != math/rand.Rand
.This isn't a huge issue, but thought it's worth flagging anyways. Perhaps one way to solve this would be to update implementations of the Jitter interface to accept an interface instead of
*math.Rand
or maybe even:
though I'm not sure how well that'd work with pointer receivers as I've not tested it.
The text was updated successfully, but these errors were encountered: