Overview
| Artifact ID: | 3e908255a3dc695057e1f0893be9a57c2853cf54 |
|---|---|
| Ticket: | 416643ffffffffffffffffffffffffffffffffff |
| Date: | 2001-04-20 10:20:40 |
| User: | davygrvy |
| Artifact Attached: | eb287d122b4ca1ca7eac6384067024a743c49ef5 |
| Filename: | rand_patch.txt |
| Description: |
Content:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25*** tclExecute.c 2001/04/07 03:15:38 1.21 --- tclExecute.c 2001/04/20 01:32:03 *************** *** 4083,4089 **** if (!(iPtr->flags & RAND_SEED_INITIALIZED)) { iPtr->flags |= RAND_SEED_INITIALIZED; ! iPtr->randSeed = TclpGetClicks(); /* * Make sure 1 <= randSeed <= (2^31) - 2. See below. --- 4083,4094 ---- if (!(iPtr->flags & RAND_SEED_INITIALIZED)) { iPtr->flags |= RAND_SEED_INITIALIZED; ! ! /* ! * take into consideration the thread this interp is running in. ! */ ! ! iPtr->randSeed = TclpGetClicks() + ((long) Tcl_GetCurrentThread() << 12); /* * Make sure 1 <= randSeed <= (2^31) - 2. See below.