Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).
Hi, I want to implement a random number generator into my C5410 DSP. I have found code for rand routines, but I have noticed the seed of the generator is always the same, so the numbers generated are each time I begin my program the same. Is there any way to achieve a "real" random initialization, so not always the same numbers being generated? Thanks
Cesar- > Hi, I want to implement a random number generator into my C5410 DSP. I > have found code for rand routines, but I have noticed the seed of the > generator is always the same, so the numbers generated are each time I > begin my program the same. Is there any way to achieve a "real" random > initialization, so not always the same numbers being generated? Is there anything on your card having to do with date/time the DSP can read? If the DSP can read something that changes every time it boots up, then you can use that data to change the seed. Maybe a general purpose CPU somewhere else in the system can send some "time-varying" info to the DSP on boot-up. -Jeff