1 #ifndef RNGDOUBLE_H 2 #define RNGDOUBLE_H 3 4 #include "mypaint-config.h" 5 6 #if MYPAINT_CONFIG_USE_GLIB 7 #include <glib.h> 8 #else // not MYPAINT_CONFIG_USE_GLIB 9 #include "mypaint-glib-compat.h" 10 #endif 11 12 13 G_BEGIN_DECLS 14 15 typedef struct RngDouble RngDouble; 16 17 RngDouble* rng_double_new(long seed); 18 void rng_double_free(RngDouble *self); 19 20 void rng_double_set_seed(RngDouble *self, long seed); 21 double rng_double_next(RngDouble* self); 22 void rng_double_get_array(RngDouble *self, double aa[], int n); 23 24 G_END_DECLS 25 26 #endif // RNGDOUBLE_H 27