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 Replace -1 with GhostUserID (#27703) 2023-10-20 14:43:08 +00:00
badge.go
block.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
block_test.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
email_address.go [BUG] Don't delete inactive emails explicitly 2024-03-29 15:14:09 +01:00
email_address_test.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-03-06 12:10:44 +08:00
error.go Remove unused KeyID. (#29167) 2024-02-16 15:20:52 +01:00
external_login_user.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
follow.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
follow_test.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
list.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
must_change_password.go
openid.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
openid_test.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
redirect.go Another round of db.DefaultContext refactor (#27103) 2023-09-25 13:17:37 +00:00
redirect_test.go Another round of db.DefaultContext refactor (#27103) 2023-09-25 13:17:37 +00:00
search.go Implement remote user login source and promotion to regular user 2024-04-25 13:03:49 +02:00
setting.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
setting_keys.go
setting_test.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
user.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
user_system.go [BRANDING] reserve forgejo-actions username 2024-02-05 16:05:01 +01:00
user_test.go Replace deprecated math/rand functions (#30733) 2024-04-28 15:39:02 +02:00
user_update.go