toxiproxy icon indicating copy to clipboard operation
toxiproxy copied to clipboard

Added support for setting seed for deterministic results.

Open tboloo opened this issue 1 year ago • 2 comments

As of Go 1.20 the math/rand package has been updated to use a stable random number generator by default, also there is no longer a global random number generator (rand.Seed(seed int64)), which would be used by all code in application. This change restores the previous behavior by passing around the seed to all functions that require random numbers.

tboloo avatar Dec 27 '24 10:12 tboloo

I have signed the CLA!

tboloo avatar Dec 27 '24 10:12 tboloo

+1 this would be a great feature to have when using toxiproxy for measuring improvements over time by reducing the randomness. Is there any way to revive this effort?

jasonashton avatar Dec 02 '25 16:12 jasonashton