* generates 1,2,3,0,1,2,3,0...
* You should use high-order bits.
*/
+#ifdef __DARWIN__
+static
+#endif
unsigned int fastrand_val;
unsigned int fastrand(void)
/* utils.c */
void HSItoRGB(double H, double S, double I, int *r, int *g, int *b);
+#ifndef __DARWIN__
extern unsigned int fastrand_val;
+#define inline_fastrand() (fastrand_val=fastrand_val*1103515245+12345)
+#endif
unsigned int fastrand(void);
void fastsrand(unsigned int);
-#define inline_fastrand() (fastrand_val=fastrand_val*1103515245+12345)
/* image.c */
int image_set_threshold_y(int threshold);