Changeset 1093


Ignore:
Timestamp:
Oct 9, 2013 10:46:09 AM (8 years ago)
Author:
vondreele
Message:

better fix to random number start for multiprocessing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r1092 r1093  
    24212421def worker(iCyc,data,RBdata,reflType,reflData,covData,out_q,nprocess=-1):
    24222422    outlist = []
    2423     if nprocess>0: random.random(100*nprocess) # compute some extra numbers to change the state
     2423    random.seed(int(time.time())%10+nprocess)   #make sure each process has a different random start
    24242424    for n in range(iCyc):
    24252425        result = mcsaSearch(data,RBdata,reflType,reflData,covData,None)
Note: See TracChangeset for help on using the changeset viewer.