AnsweredAssumed Answered

Seeding with srand() possible?

Question asked by mlomonaco on May 4, 2015
Latest reply on May 4, 2015 by mlomonaco

Hello,

has anyone ever tried to seed the rand() PNRG with something like the following classic trick?

 

srand(time(NULL));

 

Since on SHARCs time(time_t*) is not implemented seems to stuck the PRNG in a useless initial state having always the same value.

 

Marco

Outcomes