summaryrefslogtreecommitdiff
path: root/deck.c
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2006-04-25 01:26:30 +0200
committerThomas Günther <tom@toms-cafe.de>2006-04-25 01:26:30 +0200
commit9a7e5e080aa9920ce62d9d16cb009bcb491746ac (patch)
treec04367faa793b8b23bc4a55b1522732e64dbb45c /deck.c
parent1becd81a2986fd9b594a01a80941261ccb1e44b0 (diff)
downloadvdr-plugin-spider-9a7e5e080aa9920ce62d9d16cb009bcb491746ac.tar.gz
vdr-plugin-spider-9a7e5e080aa9920ce62d9d16cb009bcb491746ac.tar.bz2
Removed compatibility to VDR < 1.3.47
Diffstat (limited to 'deck.c')
-rw-r--r--deck.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/deck.c b/deck.c
index 5945211..c4b2d92 100644
--- a/deck.c
+++ b/deck.c
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: deck.c 2 2005-05-14 22:25:56Z tom $
+ * $Id: deck.c 22 2006-04-24 23:26:30Z tom $
*/
#include "deck.h"
@@ -15,12 +15,7 @@
/** Random number 0 .. max-1 */
unsigned int rand(unsigned int max)
{
- static unsigned int seed =
-#if VDRVERSNUM >= 10318
- cTimeMs::Now();
-#else
- time_ms();
-#endif
+ static unsigned int seed = cTimeMs::Now();
return (unsigned int)((double)max * rand_r(&seed) / (RAND_MAX + 1.0));
}