.
D 2000-12-13T08:53:17
J icomment Even\swithout\sa\sconvincing\scase\sthat\ssome\scompilers\nare\sbroken,\sit\sis\sevident\sthat\sthey\svary,\sso\swe\sneed\nan\simplementation\sthat\sworks\swith\sthem\sall.\n\nA\s64-bit\sworld\swould\sbe\sa\sgreat\sreason,\ssome\sday,\sto\nreplace\sTcl's\s"minimally\sacceptable"\s[*]\srand()\swith\sa\nbetter\sone.\s\sFor\snow,\sI'm\ssatisfied\swith\sfixing\sthis\sone.\nBesides,\sanyone\sdoing\sserious\sstatistics\sis,\sI\shope,\swise\nenough\sto\sknow\sthat\sTcl's\srand()\sis\snot\sup\sto\sthe\stask.\nThey\sshould\sbe\sproducing\sand\susing\sextensions\sspecialized\nfor\sthat\spurpose.\n\nThere\sis\sa\svery\sminor\s(IMHO)\sincompatibility\sintroduced\nby\sthis\spatch.\s\s[expr\ssrand($seed)]\sis\sused\sto\sinitialize\nthe\srandom\snumber\sgenerator\sso\sby\susing\sthe\ssame\sseed\nagain\sand\sagain,\sthe\sprogrammer\scan\sgenerate\sthe\ssame\npseudo-random\ssequence\sagain\sand\sagain.\s\sAfter\sthis\spatch\nis\sapplied,\son\sthose\s64-bit\splatforms\swhere\sBug\s121072\sdid\nnot\sexhibit,\sand\sfor\svalues\sof\s$seed\s>=\s2^31,\sthe\ssequence\ngenerated\safter\s[expr\ssrand($seed)]\sin\sTcl\s8.4\swill\snot\sbe\nthe\ssame\ssequence\sas\swas\sgenerated\sby\sthe\ssame\s$seed\sin\nTcl\s8.3.\s\sFor\sother\splatforms,\sor\svalues\sof\s$seed\sless\sthan\n2^31\son\sall\splatforms,\sthe\s$seed\s->\ssequence\smap\sshould\sbe\nunchanged.\n\nWithout\sobjection,\sI'll\sintegrate\son\sDec.\s14,\s2000.\n\n[*]\sPress\s&\sTeukolsky\n
J login dgp
J mimetype text/plain
J username dgp
K 402781ffffffffffffffffffffffffffffffffff
U dgp
Z edd693603a72c48204f816413cb9491c