1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #2424, use srandom/random to generate. 3.0.164

This commit is contained in:
winlin 2021-07-04 13:10:42 +08:00
parent e7435a6237
commit d72d05294d
10 changed files with 25 additions and 16 deletions

View file

@ -54,7 +54,7 @@ srs_error_t SrsLatestVersion::start()
return srs_success;
}
char buf[10];
char buf[16];
srs_random_generate(buf, sizeof(buf));
for (int i = 0; i < (int)sizeof(buf); i++) {
buf[i] = 'a' + uint8_t(buf[i])%25;