0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-11 04:21:21 +01:00
gitea/modules/auth
Chongyi Zheng 7b8e418da1
Replace deprecated math/rand functions (#30733)
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
2024-04-27 18:50:35 +02:00
..
openid Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
pam Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
password Replace deprecated math/rand functions (#30733) 2024-04-27 18:50:35 +02:00
webauthn Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
common.go Map OIDC groups to Orgs/Teams (#21441) 2023-02-08 14:44:42 +08:00