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
|
@ -341,7 +341,7 @@ namespace srs_internal
|
|||
|
||||
key_block::key_block()
|
||||
{
|
||||
offset = (int32_t)rand();
|
||||
offset = (int32_t)srs_random();
|
||||
random0 = NULL;
|
||||
random1 = NULL;
|
||||
|
||||
|
@ -423,7 +423,7 @@ namespace srs_internal
|
|||
|
||||
digest_block::digest_block()
|
||||
{
|
||||
offset = (int32_t)rand();
|
||||
offset = (int32_t)srs_random();
|
||||
random0 = NULL;
|
||||
random1 = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue