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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top