linuxdvb: en50494 - use /dev/urandom value instead rand()

This commit is contained in:
Jaroslav Kysela 2014-10-03 22:16:43 +02:00
parent e6bfe876d7
commit d94850a3f8

View file

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