module-rtp: use new random functions

This commit is contained in:
Wim Taymans 2023-02-22 15:26:58 +01:00
parent 56d2e1e880
commit 9a6fa2e6a1
2 changed files with 5 additions and 17 deletions

View file

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