Skip to content
Tcl Source Code Artifact [a2bf60921e]
Login

Artifact [a2bf60921e]

Artifact a2bf60921ee244be9a4b9f1268ba367bc4b7ef33:

Ticket change [a2bf60921e] - New ticket [1480509fffffffff|1480509fff] <i>Allow srand() to handle big wides</i>. by afredd on 2006-05-02 16:13:46.
D 2006-05-02T16:13:46
J assignee dkf
J cmimetype text/plain
J comment \nCurrently\ssrand()\stakes\san\sinteger\s(long)\sargument.\nIt\swould\sbe\snice\sif\sit\swas\sextended\sto\salso\shandling\nwides\sthat\swere\stoo\sbig\sfor\sa\slong\saswell.\s\n\nRationale:\n\nexpr\s{srand(\s[clock\sclicks]\s)}\n\nis\sprobably\snot\san\suncomon\sidiom\s(well\si\suse\sit\s:-)\s\nThis\sis\sfine\sin\s8.4\swhere\s[clock\sclicks]\sis\sa\slong,\nbut\sunder\s8.5\sgives\sthe\sinitially\sconfusing\serror:\n\ncan't\suse\sfloating-point\svalue\sas\sargument\sto\ssrand\n\nAlthough\srand()'s\s"randSeed"\sis\sa\slong,\sin\sthe\scase\nwhere\sit\sis\sgiven\sa\sbig\swide,\scouldn't\sTcl\sjust,\sfor\nexample,\struncate\sit\sdown\sto\sa\slong?
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter afredd
J subsystem 
J title Allow\ssrand()\sto\shandle\sbig\swides
J type Bug
K 1480509fffffffffffffffffffffffffffffffff
U afredd
Z 4f50e9d2ff4163c8bc5de2007c99a861