diff options
| author | Maisem Ali <maisem@tailscale.com> | 2024-05-01 23:51:24 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <brad@danga.com> | 2024-05-02 09:09:09 -0700 |
| commit | a49ed2e1458fa32ee0e7aed9df45fa680abd47c3 (patch) | |
| tree | b142b598503041657e8fb64ed74763577f1d4500 /control/controlknobs/controlknobs.go | |
| parent | 96712e10a77302427514255411dbfdf2c208d2f9 (diff) | |
| download | tailscale-a49ed2e1458fa32ee0e7aed9df45fa680abd47c3.tar.xz tailscale-a49ed2e1458fa32ee0e7aed9df45fa680abd47c3.zip | |
derp,ipn/ipnlocal: stop calling rand.Seed
It's deprecated and using it gets us the old slow behavior
according to https://go.dev/blog/randv2.
> Having eliminated repeatability of the global output stream, Go 1.20
> was also able to make the global generator scale better in programs
> that don’t call rand.Seed, replacing the Go 1 generator with a very
> cheap per-thread wyrand generator already used inside the Go
> runtime. This removed the global mutex and made the top-level
> functions scale much better. Programs that do call rand.Seed fall
> back to the mutex-protected Go 1 generator.
Updates #7123
Change-Id: Ia5452e66bd16b5457d4b1c290a59294545e13291
Signed-off-by: Maisem Ali <maisem@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions
