Overview
| Artifact ID: | 2957c71607af5089b6e40be1a3cdf6609d7bcdae |
|---|---|
| Ticket: | 416643ffffffffffffffffffffffffffffffffff
rand() has identical results in threads. |
| User & Date: | davygrvy on 2001-04-18 06:15:59 |
Changes
- icomment:
Logged In: YES user_id=7549 Say I do update and rebuild for the HEAD, and all threads do hit line 4087, tclExecute.c: iPtr->randSeed = TclpGetClicks(); and for the sake of discussion, TclpGetClicks() returns the exact same result for all threads running in parallel. Even with a higher resolution of the timer, the *possibility* for a same seed value still exists. Would it make sense to have the thread extension do this for me by pre-seeding so even if parallel threads call rand () at the exact same moment, the return will be different?
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"