Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7750a4613e19ea034621e585f3d0b5b7998beb5d
Ticket: 416643ffffffffffffffffffffffffffffffffff
rand() has identical results in threads.
User & Date: dgp on 2001-04-18 03:07:37
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    Is this a new problem, or does it also exist in Tcl 8.3.2?
    
    Tcl has it's own rand() implementation -- it does not call
    a system rand() -- so this problem is a problem with Tcl.
    
    There is one seed per interp: iPtr->randSeed, and it is
    initialized in ExprRandFunc() in generic/tclExecute.c.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"