1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Improved parallel RNG init

This commit is contained in:
paboyle 2017-12-05 13:01:10 +00:00
parent a14038051f
commit c24d4c8d0e

View File

@ -159,9 +159,11 @@ namespace Grid {
// and margin of safety is orders of magnitude. // and margin of safety is orders of magnitude.
// We could hack Sitmo to skip in the higher order words of state if necessary // We could hack Sitmo to skip in the higher order words of state if necessary
///////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////
// uint64_t skip = site+1; // Old init Skipped then drew. Checked compat with faster init
uint64_t skip = site; uint64_t skip = site;
skip = skip<<40; skip = skip<<40;
eng.discard(skip); eng.discard(skip);
// std::cout << " Engine " <<site << " state " <<eng<<std::endl;
} }
#endif #endif
static RngEngine Reseed(RngEngine &eng) static RngEngine Reseed(RngEngine &eng)