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

@ -55,6 +55,9 @@ extern void srs_random_generate(char* bytes, int size);
// Generate random string [0-9a-z] in size of len bytes.
extern std::string srs_random_str(int len);
// Generate random value, use srandom(now_us) to init seed if not initialized.
extern long srs_random();
/**
* generate the tcUrl without param.
* @remark Use host as tcUrl.vhost if vhost is default vhost.