diff options
Diffstat (limited to 'gst/goom/goom_tools.h')
-rw-r--r-- | gst/goom/goom_tools.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gst/goom/goom_tools.h b/gst/goom/goom_tools.h index e3613825..91f310c2 100644 --- a/gst/goom/goom_tools.h +++ b/gst/goom/goom_tools.h @@ -8,22 +8,22 @@ extern int * rand_tab ; extern unsigned short rand_pos ; #define RAND_INIT(i) \ - srand (i) ;\ - if (!rand_tab)\ - rand_tab = (int *) malloc (NB_RAND * sizeof(int)) ;\ - rand_pos = 1 ;\ - while (rand_pos != 0)\ - rand_tab [rand_pos++] = rand () ; + srand (i) ;\ + if (!rand_tab)\ + rand_tab = (int *) malloc (NB_RAND * sizeof(int)) ;\ + rand_pos = 1 ;\ + while (rand_pos != 0)\ + rand_tab [rand_pos++] = rand () ; #define RAND()\ - (rand_tab[rand_pos = rand_pos + 1]) + (rand_tab[rand_pos = rand_pos + 1]) #define RAND_CLOSE()\ - free (rand_tab);\ - rand_tab = 0; + free (rand_tab);\ + rand_tab = 0; /*#define iRAND(i) ((guint32)((float)i * RAND()/RAND_MAX)) */ #define iRAND(i) (RAND()%i) - + #endif |