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
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue