forgejo/models
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
..
actions Interpolate runs-on with variables when scheduling tasks (#30640) 2024-04-28 15:39:00 +02:00
activities Reduce unnecessary database queries on actions table (#30509) 2024-04-21 12:07:30 +02:00
admin
asymkey Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
auth Fix wrong table name (#30557) 2024-04-28 15:39:00 +02:00
avatars Replace 10 more gt- classes with tw- (#29945) 2024-03-26 19:04:27 +01:00
db Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
dbfs
fixtures test: LFS gc should not delete all metadata objects 2024-04-26 10:16:59 +02:00
forgejo/semver
forgejo_migrations Drop Gitea-specific columns from two tables 2024-04-26 10:34:06 +02:00
git chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 2024-04-28 15:39:00 +02:00
issues Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
migrations Rename migration package name for 1.22-rc1 (#30730) 2024-04-28 15:39:01 +02:00
organization Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
packages Fix package list performance (#30520) 2024-04-21 16:28:16 +02:00
perm
project Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
pull
repo Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
secret
shared/types
system
unit
unittest [CHORE] Remove Microsoft SQL Server Support 2024-04-05 23:37:36 +02:00
user Replace deprecated math/rand functions (#30733) 2024-04-28 15:39:02 +02:00
webhook webhook: sourcehut_builds: ask for access_token instead of authorization_header 2024-04-16 08:59:55 +02:00
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 2024-04-28 15:39:00 +02:00
repo_transfer_test.go