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

@ -484,7 +484,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