<i>rand() has identical results in threads.</i> status still Open with 4 other changes
by
.
D 2001-04-18T06:15:59
J icomment Logged\sIn:\sYES\s\nuser_id=7549\n\nSay\sI\sdo\supdate\sand\srebuild\sfor\sthe\sHEAD,\sand\sall\sthreads\s\ndo\shit\sline\s4087,\stclExecute.c:\n\niPtr->randSeed\s=\sTclpGetClicks();\n\nand\sfor\sthe\ssake\sof\sdiscussion,\sTclpGetClicks()\sreturns\sthe\s\nexact\ssame\sresult\sfor\sall\sthreads\srunning\sin\sparallel.\s\s\nEven\swith\sa\shigher\sresolution\sof\sthe\stimer,\sthe\s\n*possibility*\sfor\sa\ssame\sseed\svalue\sstill\sexists.\n\nWould\sit\smake\ssense\sto\shave\sthe\sthread\sextension\sdo\sthis\s\nfor\sme\sby\spre-seeding\sso\seven\sif\sparallel\sthreads\scall\srand\n()\sat\sthe\sexact\ssame\smoment,\sthe\sreturn\swill\sbe\sdifferent?\n
J login davygrvy
J mimetype text/plain
J username davygrvy
K 416643ffffffffffffffffffffffffffffffffff
U davygrvy
Z 5a57b7aa1709e66e4763fc17d935b81c