1
0
Fork 0
forgejo/modules
silverwind 1e6fa57acb
Use single shared random string generation function (#15741)
* Use single shared random string generation function

- Replace 3 functions that do the same with 1 shared one
- Use crypto/rand over math/rand for a stronger RNG
- Output only alphanumerical for URL compatibilty

Fixes: #15536

* use const string method

* Update modules/avatar/avatar.go

Co-authored-by: a1012112796 <1012112796@qq.com>

Co-authored-by: a1012112796 <1012112796@qq.com>
2021-05-10 07:45:17 +01:00
..
analyze
auth Add trace logging to SSO methods (#15803) 2021-05-09 18:04:53 +02:00
avatar Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
base
cache
charset
context Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
convert
cron
csv
doctor
emoji
eventsource
generate Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
git On open repository open common cat file batch and batch-check (#15667) 2021-05-10 03:27:03 +02:00
gitgraph
graceful
hcaptcha
highlight
httpcache
httplib
indexer On open repository open common cat file batch and batch-check (#15667) 2021-05-10 03:27:03 +02:00
lfs
log
markup
matchlist
metrics
migrations
nosql
notification
options
password
pprof
private
process
public
queue
recaptcha
references Respect default merge message syntax when parsing item references (#15772) 2021-05-09 19:25:23 +01:00
repofiles
repository
secret Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
session
setting
ssh
storage
structs
svg
sync
task
templates Fix incorrect asset URL (#15805) 2021-05-09 21:03:09 +01:00
test
timeutil
translation
upload
uri
user
util Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
validation
web