Fix broken random seed generation.
authorKevin Boyd <kevin44boyd@gmail.com>
Tue, 5 Jan 2021 13:28:26 +0000 (13:28 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 5 Jan 2021 13:28:26 +0000 (13:28 +0000)
commit76c4b23b47deb43b6c6f4f2fb1d53ac993262551
treee8385d2fb2abcd46c4b6ac15afe5867732294a30
parent49dcb932cd9f2bd1bf69fa3365286b207c563fa5
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