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

Squash: Fix random bug

This commit is contained in:
winlin 2021-07-04 16:04:51 +08:00
parent db3e11152e
commit 13d015b8fd
14 changed files with 28 additions and 34 deletions

View file

@ -468,7 +468,7 @@ void SrsIngester::show_ingest_log_message()
}
// random choose one ingester to report.
int index = rand() % (int)ingesters.size();
int index = srs_random() % (int)ingesters.size();
SrsIngesterFFMPEG* ingester = ingesters.at(index);
// reportable