From d94850a3f8cd9877e3c8d5b431c32b3e2ec62991 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 3 Oct 2014 22:16:43 +0200 Subject: [PATCH] linuxdvb: en50494 - use /dev/urandom value instead rand() --- src/input/mpegts/linuxdvb/linuxdvb_en50494.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/linuxdvb/linuxdvb_en50494.c b/src/input/mpegts/linuxdvb/linuxdvb_en50494.c index 3a888de6..10cbb9dc 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_en50494.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_en50494.c @@ -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); }