mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-22 08:56:59 -05:00
module-rtp: use new random functions
This commit is contained in:
parent
56d2e1e880
commit
9a6fa2e6a1
2 changed files with 5 additions and 17 deletions
|
|
@ -647,9 +647,7 @@ static struct session *session_new_announce(struct impl *impl, struct node *node
|
|||
|
||||
sess->announce = true;
|
||||
|
||||
if ((res = pw_getrandom(&sdp->hash, sizeof(sdp->hash), 0)) < 0)
|
||||
return NULL;
|
||||
|
||||
sdp->hash = pw_rand32();
|
||||
sdp->ntp = (uint32_t) time(NULL) + 2208988800U;
|
||||
sess->props = props;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue