Re: [AD] rand() vs random()

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Allegro shouldn't be calling rand() at all, IMHO.  If the user starts
> using the blender, his output series from rand() will be mysteriously
> affected.  Luckily the number of people using the dissolve blender _and_
> expecting rand() to be unaffected is probably low.  I suppose we should
> just use our own private, dumb-but-fast generator for this case
> (something like what Paul Pridham posted).

Ok, we can try that. Should we make it public though, in light of the 
drawbacks of rand() on MacOS X and elsewhere?

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/