QMCPACK
RNGThreadSafe< RNG > Class Template Reference
+ Inheritance diagram for RNGThreadSafe< RNG >:
+ Collaboration diagram for RNGThreadSafe< RNG >:

Public Types

using result_type = typename RNG::result_type
 

Public Member Functions

result_type operator() () override
 return a random number [0,1) More...
 

Detailed Description

template<class RNG>
class qmcplusplus::RNGThreadSafe< RNG >

Definition at line 42 of file RandomGenerator.h.

Member Typedef Documentation

◆ result_type

using result_type = typename RNG::result_type

Definition at line 45 of file RandomGenerator.h.

Member Function Documentation

◆ operator()()

RNG::result_type operator() ( )
override

return a random number [0,1)

Definition at line 23 of file RandomGenerator.cpp.

24 {
25  result_type result;
26 #pragma omp critical
27  {
28  result = RNG::operator()();
29  }
30  return result;
31 }
typename RNG::result_type result_type

The documentation for this class was generated from the following files: