A
Arijit Das
Can srand() be safely used for seeding subsequent random() calls?
And vice versa? Can srandom() be used for seeding subsequent rand()
calls?
Are these independent random number generators?
I tried few small examples and things seem to work by inter-mixing/
changing these (srand with random and vice versa).
But, i am not sure if that is legal or they just working by chance or
some implementation side effect.
Wanted to understand what is the legal stand on this issue?
Arijit
And vice versa? Can srandom() be used for seeding subsequent rand()
calls?
Are these independent random number generators?
I tried few small examples and things seem to work by inter-mixing/
changing these (srand with random and vice versa).
But, i am not sure if that is legal or they just working by chance or
some implementation side effect.
Wanted to understand what is the legal stand on this issue?
Arijit