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

Squash: Merge #2448, #2440

This commit is contained in:
winlin 2021-06-30 07:32:28 +08:00
parent 346cc96d7a
commit 75530efbc4
5 changed files with 34 additions and 24 deletions

View file

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