[Insight-users] about MersenneTwisterRandomVariateGenerator

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Sat Mar 12 01:11:00 EST 2011


Le 12 mars 11 à 03:21, Suyash P. Awate a écrit :

>
> Hi all,
>
> The documentation in ITK-3.2 states that the  
> itkMersenneTwisterRandomVariateGenerator implementation isn't thread  
> safe.
>
> Now, if an application contains multiple threads that need to  
> simultaneously (and throughout the program's run time) generate  
> (independent) random-number sequences, what alternatives could be  
> used within ITK ?
>
> Thanks, in advance, for your suggestions,
> Suyash

Hi,

You can try with this modified version:

   http://mima2.jouy.inra.fr/darcs/contrib-itk/noise/itkThreadSafeMersenneTwisterRandomVariateGenerator.cxx
   http://mima2.jouy.inra.fr/darcs/contrib-itk/noise/itkThreadSafeMersenneTwisterRandomVariateGenerator.h

Regards,

Gaëtan


-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110312/b851857a/attachment.pgp>


More information about the Insight-users mailing list