Re: [AD] Allegro 4.2 todos

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


> Ok, but then the test (and other programs/example) randomness problem is
> not solved again... Should we add a dedicated static rand() function at
> least to the test program? The various tests is where the low randomness
> shows the most.

Why not Elias' solution

    (rand()>>8)+(rand()&0xff00)

wrapped up in a macro and with a comment exposing the rationale?

-- 
Eric Botcazou




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