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:
parent
db3e11152e
commit
13d015b8fd
14 changed files with 28 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue