Re: [AD] srand()

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


On 2002-08-28, Roberto Alfonso <rpgrca@xxxxxxxxxx> wrote:
> Eric Botcazou wrote:
> > 
> > > I think ex12bit.c, ex3buf.c, ex3d.c, exaccel.c, excolmap.c, exflame.c,
> > > exscale.c, exscroll.c, exstars.c, exunicod.c, exzbuf.c and demo.c
> > > should have a srand(time(NULL)/getpid()/etc) call somewhere.
> > 
> > Ok for the demo game, not worthwhile for the others.
> > And make sure to use ANSI C functions only.
> > 
> > - Eric
> 
> Here is the patch, tested under DJGPP 2.3, MinGW32 and MSVC 6.

Committed.

> By the way, I was thinking about modifying some of the demo source,
> taking the "an-explosion-killed-me" feature out

Yes, one of the most annoying things about Allegro ;-)

> , shrinking it a bit, plus
> maybe adding circular and sinuidal movement. Suggestions?

I miss the auto-generated "aliens".  And demo.dat wasn't so big.

> And just to prevent spamming the list, how about putting all makefiles
> into allegro/mkfiles?

Too much potential breakage.

> 
> I still think Allegro should have its own portable allegro_seed() and
> allegro_random() functions...

I don't.



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