Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a2bf60921ee244be9a4b9f1268ba367bc4b7ef33
Ticket: 1480509fffffffffffffffffffffffffffffffff
Allow srand() to handle big wides
User & Date: afredd on 2006-05-02 16:13:46
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. 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?
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "afredd"
  9. subsystem changed to: ""
  10. title changed to: "Allow srand() to handle big wides"
  11. type changed to: "Bug"