mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
<!-- Describe what has changed in this PR --> **What changed?** Removed all calls to `rand.Seed` with a _random_ initialization value. <!-- Tell your future self why have you made these changes --> **Why?** Less code is better. [From the docs](https://pkg.go.dev/math/rand#Seed): > If Seed is not called, the generator is seeded randomly at program startup. > Prior to Go 1.20, the generator was seeded like Seed(1) at program startup. [...] > Deprecated: **As of Go 1.20 there is no reason to call Seed with a random value**. [...] <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** Existing tests. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** According to the docs, this is a no-op change in terms of behaviour. <!-- Is this PR a hotfix candidate or require that a notification be sent to the broader community? (Yes/No) --> **Is hotfix candidate?** No.