-
Notifications
You must be signed in to change notification settings - Fork 6
Migrate to math/rand/v2 #263
Copy link
Copy link
Labels
good first issueGood for newcomersGood for newcomersmodule/cmdAffects the CLI moduleAffects the CLI modulemodule/flowAffects the flow moduleAffects the flow modulemodule/mainAffects the main moduleAffects the main module
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersmodule/cmdAffects the CLI moduleAffects the CLI modulemodule/flowAffects the flow moduleAffects the flow modulemodule/mainAffects the main moduleAffects the main module
Type
Fields
Give feedbackNo fields configured for Enhancement.
The
fakelibrary 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.