Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Ads

Discussion Groups

Discussion Groups | TMS320C54x | Random number generation initialization

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).

  

Post a new Thread

Random number generation initialization - Cesar - May 2 7:47:57 2007



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



(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )

Re: Random number generation initialization - Jeff Brower - May 2 14:16:13 2007

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



(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )