1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-16 23:07:05 +01:00

fix sprng-sha256 seed with seq

This commit is contained in:
Luchang Jin
2016-08-26 01:06:05 -04:00
parent 71eaa7c79e
commit 4fb37ececd

View File

@ -69,6 +69,7 @@ struct SprngSha256
{
std::array<uint32_t, 8> seq;
q.generate(seq.begin(), seq.end());
reset(rs);
for (size_t i = 0; i < seq.size(); ++i) {
splitRngState(rs, rs, seq[i]);
}