I
InuY4sha
I'm trying to get a random seed for srand function, but it seems like
I can't use the time as seed, since the only function that allows that
is ctime, and when I use it inside my code I pass from 39Kb of binary
to 52Kb or so.. which exceeds my available memory... is there any
other way to get a random seed?
Or maybe is there a way to tell the compiler to just use the ctime
function and forget about all the rest of the library?
I'm programming on a C5471 Texas Instruments DSP.. and I don't see any
other way of getting a random event as seed... I mean... everything
not really random, but the time you start running the code...
Thanks and sorry for the OT
Cheers
RM
I can't use the time as seed, since the only function that allows that
is ctime, and when I use it inside my code I pass from 39Kb of binary
to 52Kb or so.. which exceeds my available memory... is there any
other way to get a random seed?
Or maybe is there a way to tell the compiler to just use the ctime
function and forget about all the rest of the library?
I'm programming on a C5471 Texas Instruments DSP.. and I don't see any
other way of getting a random event as seed... I mean... everything
not really random, but the time you start running the code...
Thanks and sorry for the OT
Cheers
RM