tailscale/tstest
James Tucker eca5b33a78
tstest: add a helper for reproducable random seeds
We recently ran across a case of flaky tests that were seeding the
math/rand package and using that to generate data. The tests were
flaking on specific random values that were difficult to reproduce. If
the test had been using a helper like this, the flaky cases could have
been reliably reproduced.

Signed-off-by: James Tucker <james@tailscale.com>
2023-05-10 15:30:55 -07:00
..
archtest all: update copyright and license headers 2023-01-27 15:36:29 -08:00
integration tsd: add package with System type to unify subsystem init, discovery 2023-05-04 14:21:59 -07:00
iosdeps all: update copyright and license headers 2023-01-27 15:36:29 -08:00
jsdeps all: update copyright and license headers 2023-01-27 15:36:29 -08:00
natlab wgengine/magicsock, types/nettype, etc: finish ReadFromUDPAddrPort netip migration 2023-04-15 13:40:15 -07:00
tools all: update copyright and license headers 2023-01-27 15:36:29 -08:00
allocs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
clock.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
log.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
log_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
resource.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tstest.go tstest: add a helper for reproducable random seeds 2023-05-10 15:30:55 -07:00
tstest_test.go tstest: add a helper for reproducable random seeds 2023-05-10 15:30:55 -07:00