Overview
| Artifact ID: | a2bf60921ee244be9a4b9f1268ba367bc4b7ef33 |
|---|---|
| Ticket: | 1480509fffffffffffffffffffffffffffffffff
Allow srand() to handle big wides |
| User & Date: | afredd on 2006-05-02 16:13:46 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
Currently srand() takes an integer (long) argument. It would be nice if it was extended to also handling wides that were too big for a long aswell. Rationale: expr {srand( [clock clicks] )} is probably not an uncomon idiom (well i use it :-) This is fine in 8.4 where [clock clicks] is a long, but under 8.5 gives the initially confusing error: can't use floating-point value as argument to srand Although rand()'s "randSeed" is a long, in the case where it is given a big wide, couldn't Tcl just, for example, truncate it down to a long? - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "afredd"
- subsystem changed to: ""
- title changed to: "Allow srand() to handle big wides"
- type changed to: "Bug"