diff options
author | Thomas Günther <tom@toms-cafe.de> | 2006-04-25 01:26:30 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2006-04-25 01:26:30 +0200 |
commit | 9a7e5e080aa9920ce62d9d16cb009bcb491746ac (patch) | |
tree | c04367faa793b8b23bc4a55b1522732e64dbb45c /deck.c | |
parent | 1becd81a2986fd9b594a01a80941261ccb1e44b0 (diff) | |
download | vdr-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.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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)); } |