#include "random.h"
#include "joystick.h"
+/* maximal allowed length of a command line option */
+#define MAX_OPTION_LEN 256
+
static unsigned long mainCounter(int mode)
{
static struct timeval base_time = { 0, 0 };
return (root % max);
}
+#ifdef DEBUG
+static unsigned int last_RND_value = 0;
+
+unsigned int last_RND()
+{
+ return last_RND_value;
+}
+#endif
+
unsigned int RND(unsigned int max)
{
+#ifdef DEBUG
+ return (last_RND_value = random_linux_libc() % max);
+#else
return (random_linux_libc() % max);
+#endif
}
unsigned int InitRND(long seed)