Skip to content

Upgrade to math/rand/v2 #1653

@SpencerTorres

Description

@SpencerTorres

We have some tests that depend on random number generation, mainly for connection host failover. These tests were never really safely picking random numbers, they were inconsistent. I hacked some rand.Seed calls in to get it working, but never liked the solution.

With Go 1.25, rand.Seed doesn't work anymore and broke our main branch. I've skipped these tests for now (#1652) but we should look into updating to the new math/rand/v2 package.

Related blog post:

https://go.dev/blog/randv2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions