RE: [AD] Allegro 4.2 todos |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
>>> If this is ok, I can add it and replace rand() calls everywhere in the
>>> library. Let me know!
>>
>> Yes, I think that's the solution everyone seems to agree to, so
>you can go
>> ahead.
>
>I have a problem: if I declare it as private inside internal.h, we'll have
>to include this header manually also in many files (test.c,
>demo.c, ex12bit,
>ex3buf and others that all use rand()), which is not nice IMO.
>Otherwise I could declare it in some basic Allegro header, but then which
>one? Noone seems to be the right place for such a function...
Instead of #including internal.h in the demos, test-programs and examples,
the random function could be defined separately in each program that uses
it. It's only a few lnes of code so should not add much bloat. It will give
developpers inspiration for writing their own random-functions.
AE.