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

@ -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;