1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-10 17:54:27 +00:00
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
..
2021-04-14 14:02:12 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2020-03-22 11:12:55 -04:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-11-12 16:33:34 +08:00
2020-03-22 11:12:55 -04:00
2020-01-13 18:33:46 +01:00
2020-03-09 00:08:05 +02:00
2020-04-01 01:14:46 -03:00
2020-05-15 15:05:18 +01:00
2021-01-28 23:58:33 +01:00
2020-09-20 00:44:55 +08:00
2021-02-20 15:02:39 +01:00
2021-01-29 23:52:13 +08:00
2021-02-11 18:32:25 +01:00
2021-03-24 19:27:22 +01:00
2021-03-24 19:27:22 +01:00
2021-04-08 18:25:57 -04:00
2021-04-14 14:02:12 +02:00