forgejo/models/user
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
..
fixtures Implement remote user login source and promotion to regular user 2024-04-25 13:03:49 +02:00
avatar.go
badge.go
block.go
block_test.go
email_address.go
email_address_test.go
error.go
external_login_user.go
follow.go
follow_test.go
list.go
main_test.go
must_change_password.go
openid.go
openid_test.go
redirect.go
redirect_test.go
search.go Implement remote user login source and promotion to regular user 2024-04-25 13:03:49 +02:00
setting.go
setting_keys.go Show outdated comments in files changed tab (#24936) 2023-06-21 16:08:12 +00:00
setting_test.go
user.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
user_system.go
user_test.go Replace deprecated math/rand functions (#30733) 2024-04-28 15:39:02 +02:00
user_update.go