forgejo-federation/modules/auth/password
Chongyi Zheng 781789e779
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

(cherry picked from commit 7b8e418da1e082786b844562a05864ec1177ce97)
2024-04-28 15:39:02 +02:00
..
hash [GITEA] Drop sha256-simd in favor of stdlib 2024-02-05 16:09:40 +01:00
pwn Replace deprecated math/rand functions (#30733) 2024-04-28 15:39:02 +02:00
password.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
password_test.go Provide the ability to set password hash algorithm parameters (#22942) 2023-02-19 15:35:20 +08:00
pwn.go Unify user update methods (#28733) 2024-02-04 13:29:09 +00:00