diff --git a/src/rtp/rtp.c b/src/rtp/rtp.c index 97cc17278..ca5ad01b2 100644 --- a/src/rtp/rtp.c +++ b/src/rtp/rtp.c @@ -3333,7 +3333,7 @@ static void send_rtcp(struct rtp *session, uint32_t rtp_ts, check_database(session); /* If encryption is enabled, add a 32 bit random prefix to the packet */ if (session->encryption_enabled) { - *((uint32_t *)(void *) ptr) = lbl_random(); + *((uint32_t *)(void *) ptr) = lrand48(); ptr += 4; } @@ -3571,7 +3571,7 @@ static void rtp_send_bye_now(struct rtp *session) check_database(session); /* If encryption is enabled, add a 32 bit random prefix to the packet */ if (session->encryption_enabled) { - *((uint32_t *)(void *) ptr) = lbl_random(); + *((uint32_t *)(void *) ptr) = lrand48(); ptr += 4; } diff --git a/src/tv.c b/src/tv.c index 4dd98210a..a908e17d8 100644 --- a/src/tv.c +++ b/src/tv.c @@ -61,7 +61,7 @@ uint32_t get_local_mediatime(void) if (first == 0) { gettimeofday(&start_time, NULL); - random_offset = lbl_random(); + random_offset = lrand48(); first = 1; } @@ -181,7 +181,7 @@ uint32_t get_std_audio_local_mediatime(double samples, int rate) gettimeofday(&standard_time.start_time, NULL); standard_time.atime = standard_time.start_time; standard_time.vtime = standard_time.start_time; - standard_time.random_startime_offset = lbl_random(); + standard_time.random_startime_offset = lrand48(); tv_add_usec(&standard_time.vtime, standard_time.random_startime_offset); tv_add_usec(&standard_time.atime, standard_time.random_startime_offset); @@ -207,7 +207,7 @@ uint32_t get_std_video_local_mediatime(void) gettimeofday(&t0, NULL); standard_time.atime = standard_time.start_time; standard_time.vtime = standard_time.start_time; - standard_time.random_startime_offset = lbl_random(); + standard_time.random_startime_offset = lrand48(); tv_add_usec(&standard_time.vtime, standard_time.random_startime_offset); tv_add_usec(&standard_time.atime, standard_time.random_startime_offset);