diff options
author | Chongyi Zheng <git@zcy.dev> | 2024-04-27 12:50:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 18:50:35 +0200 |
commit | 7b8e418da1e082786b844562a05864ec1177ce97 (patch) | |
tree | c42f1034b7ae6a48421f7ddd19a534ab1e7031e6 /.gitignore | |
parent | 8de2992ffba8cc627757ecea1e002a55581113d2 (diff) | |
download | gitea-1.23.0-dev.tar.gz gitea-1.23.0-dev.zip |
Replace deprecated `math/rand` functions (#30733)v1.23.0-dev
Suggested by logs in #30729
- Remove `math/rand.Seed`
`rand.Seed is deprecated: As of Go 1.20 there is no reason to call Seed
with a random value.`
- Replace `math/rand.Read`
`rand.Read is deprecated: For almost all use cases, [crypto/rand.Read]
is more appropriate.`
- Replace `math/rand` with `math/rand/v2`, which is available since Go
1.22
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions