Fix broken random seed generation.
authorKevin Boyd <kevin44boyd@gmail.com>
Wed, 30 Dec 2020 17:51:25 +0000 (09:51 -0800)
committerPascal Merz <pascal.merz@me.com>
Tue, 5 Jan 2021 16:47:49 +0000 (16:47 +0000)
commit818c05a2f0da059dce50a06ce1dd1a69cf4305a1
tree22c70c1e847a679606eacfb71cce295294979452
parentbcb0474786f7c0f8aaefcf38156f320b0ae6318a
Fix broken random seed generation.

On Ryzen 3k CPUs with the RDRAND microcode bug, the
std::mt19937_64 alternate path yields the same seed
on multiple calls that fall within the same second. Changed
the "seed" of the random seed to rescramble each time the
makeRandomSeed() function is called.

Fixes #3859
src/gromacs/random/seed.cpp