Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 28d86f9bf349bf78112060e8bbb6ea102957d773
Ticket: 416643ffffffffffffffffffffffffffffffffff
rand() has identical results in threads.
User & Date: davygrvy on 2001-04-20 08:49:36
Changes

  1. icomment:
    Logged In: YES 
    user_id=7549
    
    Don,
    
    I'm happy with the attached patch.  These are the results 
    for me (on windows) running the first code snippit:
    
    source test2.tcl
    % 0.928865028046
    0.515779082904
    0.648316936404
    0.315270977707
    0.826455665671
    0.931451399779
    source test2.tcl
    % 0.878650014232
    0.370051698
    0.808093390804
    0.0654099826074
    0.547328303357
    0.958690000679
    source test2.tcl
    % 0.210988179879
    0.774670734897
    0.41666902854
    0.185170308307
    0.105992445772
    0.954533711986
    info patch
    8.4a3
    %
    
    If I remember correctly, Thread IDs on UNIX have smaller 
    numbers then on windows and might not effectively shift 
    TclpGetClicks deeply enough.  I'll leave the math up 
    someone more qualified than myself.
    
    
  2. login: "davygrvy"
  3. mimetype: "text/plain"
  4. username: "davygrvy"