Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e1e9c0e9689d0d2ded38b2eb23f5bde8d015a2cd
Ticket: 416643ffffffffffffffffffffffffffffffffff
rand() has identical results in threads.
User & Date: davygrvy on 2001-04-18 04:49:03
Changes

  1. icomment:
    Logged In: YES 
    user_id=7549
    
    I haven't checked 8.3.2 or 8.3.3, yet.
    
    It could be possible that all 6 threads hit this bit of 
    code at the exact same time (line 4087, tclExecute.c):
    
    iPtr->randSeed = TclpGetClicks();
    
    I leave this up to you guys.  I'm not sure if this is 
    really a "bug" or not.  I can send all the threads a seed 
    when I start them.  I can get around the behavior in 
    script.  I don't know if this warrants a sluething.
    
    
  2. login: "davygrvy"
  3. mimetype: "text/plain"
  4. username: "davygrvy"