Work-around for RDRAND returning -1 on Ryzen
commit39543d3f3abe54d713231432ca5c7fc560737eda
authorPaul Bauer <paul.bauer.q@gmail.com>
Fri, 2 Oct 2020 14:40:50 +0000 (2 14:40 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Fri, 2 Oct 2020 14:40:50 +0000 (2 14:40 +0000)
tree6f24af32778a6e8deb81f3d1dcdbe63515f318bd
parent2a017ab034b3c8f49d97b720fe03b4ee526784d5
Work-around for RDRAND returning -1 on Ryzen

Due to a bug, RDRAND can always return -1 instead of a random number.
This introduces a work-around to the problem by switching to PRNG in
case the RDRAND returns -1 twice in a row.
docs/release-notes/2020/2020.4.rst
src/gromacs/random/seed.cpp