SI_DIRECTORY, SI_DECODER_FLAGS, SI_AUDIOD_STATUS,
SI_PLAY_TIME, SI_UPTIME, SI_OFFSET,
SI_LENGTH, SI_STREAM_START, SI_CURRENT_TIME,
- SI_AUDIOD_UPTIME, SI_IMAGE_ID, NUM_STAT_ITEMS
+ SI_AUDIOD_UPTIME, SI_IMAGE_ID, SI_LYRICS_ID,
+ NUM_STAT_ITEMS
};
int stat_item_valid(const char *item);
*
* \return An integer between zero and \p max - 1, inclusively.
*/
-static inline int para_random(unsigned max)
+static inline long int para_random(unsigned max)
{
- return ((max + 0.0) * (rand() / (RAND_MAX + 1.0)));
+ return ((max + 0.0) * (random() / (RAND_MAX + 1.0)));
}
/** Round up x to a multiple of y */