1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 09:15:38 +01:00

No random device seed

This commit is contained in:
paboyle 2017-04-02 00:26:57 +09:00
parent f18f5ed926
commit 9cbcdd65d7

View File

@ -425,7 +425,7 @@ namespace Grid {
A[p]=zero; A[p]=zero;
} }
GridParallelRNG RNG(Grid()); RNG.SeedRandomDevice(); GridParallelRNG RNG(Grid()); RNG.SeedFixedIntegers(std::vector<int>({55,72,19,17,34}));
Lattice<iScalar<CComplex> > val(Grid()); random(RNG,val); Lattice<iScalar<CComplex> > val(Grid()); random(RNG,val);
Complex one(1.0); Complex one(1.0);