From 494a07a361fe4ee0e54f77468a976b1a77818770 Mon Sep 17 00:00:00 2001 From: Tom Schouten Date: Fri, 12 Sep 2003 22:26:57 +0000 Subject: creb 0.9.0 svn path=/trunk/externals/creb/; revision=956 --- modules/permut.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'modules/permut.c') diff --git a/modules/permut.c b/modules/permut.c index bc143d2..7738f84 100644 --- a/modules/permut.c +++ b/modules/permut.c @@ -20,9 +20,10 @@ */ -#include "m_pd.h" #include #include +//#include "m_pd.h" +#include "extlib_util.h" @@ -64,7 +65,8 @@ static void permut_random(t_permut *x, t_floatarg seed) int *p = x->x_ctl.c_permutationtable; int r, last = 0; - srand(* ((unsigned int *)(&seed))); + //srand(* ((unsigned int *)(&seed))); + srand (((t_flint)seed).i); if(p) { @@ -91,7 +93,8 @@ static void permut_random(t_permut *x, t_floatarg seed) static void permut_bang(t_permut *x) { unsigned int r = rand(); - permut_random(x, *((float *)(&r))); + //permut_random(x, *((float *)(&r))); + permut_random(x, ((t_flint)r).f); } static void permut_resize_table(t_permut *x, int size) -- cgit v1.2.1