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
..
2020-06-15 16:46:01 -04:00
2017-05-04 13:54:56 +08:00
2021-04-19 18:25:08 -04:00
2020-04-05 07:20:50 +01:00
2019-12-15 16:57:34 -05:00
2021-04-05 08:41:22 +01:00
2020-04-05 07:20:50 +01:00
2021-04-19 18:25:08 -04:00
2021-05-01 22:51:03 -04:00
2020-04-05 07:20:50 +01:00
2020-08-16 23:07:38 -04:00
2020-03-02 00:05:44 +02:00
2020-04-05 07:20:50 +01:00
2019-06-12 15:41:28 -04:00