Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb: en50494 - use /dev/urandom value instead rand()
  • Loading branch information
perexg committed Oct 3, 2014
1 parent e6bfe87 commit d94850a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/input/mpegts/linuxdvb/linuxdvb_en50494.c
Expand Up @@ -204,7 +204,9 @@ linuxdvb_en50494_tune
/* to avoid repeated collision, wait a random time 68-118
* 67,5 is the typical diseqc-time */
if (i != 0) {
int ms = rand()%50 + 68;
uint8_t rnd;
uuid_random(&rnd, 1);
int ms = ((int)rnd)%50 + 68;
usleep(ms*1000);
}

Expand Down

0 comments on commit d94850a

Please sign in to comment.