This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS320F28379D: random number generator does not work in Standalone

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: TI C/C++ Compiler

Hello,

I am using #include "time.h"  header file to get  time_t t.

I have used  srand((unsigned) time(&t)); to generate a random number which is random always when my code is not standalone. However, as soon as change it to standalone only the same number is generated. Is it possible a way to make that happen in Standalone mode as well?

Thanks,

Sagar Shah