QMCPACK
RandomGenerator.cpp File Reference
+ Include dependency graph for RandomGenerator.cpp:

Go to the source code of this file.

Namespaces

 qmcplusplus
 helper functions for EinsplineSetBuilder
 

Functions

uint32_t make_seed (int i, int n)
 

Variables

RNGThreadSafe< FakeRandom< OHMMS_PRECISION_FULL > > fake_random_global
 
RNGThreadSafe< RandomGenerator > random_global
 

Function Documentation

◆ make_seed()

uint32_t make_seed ( int  i,
int  n 
)

Definition at line 17 of file RandomGenerator.cpp.

References qmcplusplus::n.

Referenced by qmcplusplus::TEST_CASE().

17 { return static_cast<uint32_t>(std::time(0)) % 10474949 + (i + 1) * n + i; }