[Insight-users] Thread safety and using	MersenneTwisterRandomVariateGenerator
    Cyrille Faucheux 
    cyrille.faucheux at etu.univ-tours.fr
       
    Sun Mar 17 12:00:06 EDT 2013
    
    
  
I need to use uniform and gaussian randomly generated numbers in a 
multithreaded filter.
The class itk::Statistics::MersenneTwisterRandomVariateGenerator used to 
be marked as "not thread-safe" and is now marked as "not reentrant".
Is it safe to use it in a multithreaded filter ?
And is there any advantage of using it instead of vnl_sample_normal() 
and vnl_sample_uniform() ?
Thanks
Cyrille
    
    
More information about the Insight-users
mailing list