mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
module-rtp: improve SSRC, seq and timestamp randomness
This commit is contained in:
parent
eca9bbf73b
commit
56d2e1e880
3 changed files with 33 additions and 14 deletions
|
|
@ -647,7 +647,9 @@ static struct session *session_new_announce(struct impl *impl, struct node *node
|
|||
|
||||
sess->announce = true;
|
||||
|
||||
sdp->hash = rand();
|
||||
if ((res = pw_getrandom(&sdp->hash, sizeof(sdp->hash), 0)) < 0)
|
||||
return NULL;
|
||||
|
||||
sdp->ntp = (uint32_t) time(NULL) + 2208988800U;
|
||||
sess->props = props;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue