toxiproxy
toxiproxy copied to clipboard
Added support for setting seed for deterministic results.
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.
I have signed the CLA!
+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?