Skip to content

Migrate to math/rand/v2 #263

@rolinh

Description

@rolinh

The fake library uses math/rand for random numbers generation. While this approach works fine, the Go project has since created the math/rand/v2 version of this package, which contains some changes that are incompatible with the original version. While it is not mandatory to migrate to v2, the following blog post documents why a v2 was even created in the first place and one of the reason is improved performance by using a new generator algorithm, better scalability fixing the seeding responsibility.

Metadata

Metadata

Assignees

Labels

No fields configured for Enhancement.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions