Where seed from srand() is stored?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I would like to know where the seed from the srand() is stored i.e. in
thread context or global to a process?

Thank you,
-Pandit
 
Pandit said:
I would like to know where the seed from the srand() is stored i.e. in
thread context or global to a process?

That depends on which version of the library you use. The multi-threaded
library stores it in the "per-thread" data structure.

Regards,
Will
 
Back
Top