Re: [PATCH] PR libstdc++/85494 use rdseed and rand_s in std::random_device

2019-05-31 Thread Jonathan Wakely
On 31/05/19 10:47 +0100, Jonathan Wakely wrote: On 31/05/19 10:46 +0100, Jonathan Wakely wrote: On 31/05/19 09:26 +, Szabolcs Nagy wrote: On 29/05/2019 23:03, Jonathan Wakely wrote: This fixes a test that started to fail in mingw. Tested x86_64-linux, powerpc64le-linux and x86_64-w64-ming

Re: [PATCH] PR libstdc++/85494 use rdseed and rand_s in std::random_device

2019-05-31 Thread Jonathan Wakely
On 31/05/19 10:46 +0100, Jonathan Wakely wrote: On 31/05/19 09:26 +, Szabolcs Nagy wrote: On 29/05/2019 23:03, Jonathan Wakely wrote: This fixes a test that started to fail in mingw. Tested x86_64-linux, powerpc64le-linux and x86_64-w64-ming32. Committed to trunk. note that the updated

Re: [PATCH] PR libstdc++/85494 use rdseed and rand_s in std::random_device

2019-05-31 Thread Jonathan Wakely
On 31/05/19 09:26 +, Szabolcs Nagy wrote: On 29/05/2019 23:03, Jonathan Wakely wrote: This fixes a test that started to fail in mingw. Tested x86_64-linux, powerpc64le-linux and x86_64-w64-ming32. Committed to trunk. note that the updated test fails on baremetal FAIL: 26_numerics/random

Re: [PATCH] PR libstdc++/85494 use rdseed and rand_s in std::random_device

2019-05-31 Thread Szabolcs Nagy
On 29/05/2019 23:03, Jonathan Wakely wrote: > This fixes a test that started to fail in mingw. > > Tested x86_64-linux, powerpc64le-linux and x86_64-w64-ming32. > > Committed to trunk. note that the updated test fails on baremetal FAIL: 26_numerics/random/random_device/cons/token.cc execution t

Re: [PATCH] PR libstdc++/85494 use rdseed and rand_s in std::random_device

2019-05-30 Thread Jonathan Wakely
On 29/05/19 23:03 +0100, Jonathan Wakely wrote: On 29/05/19 15:45 +0100, Jonathan Wakely wrote: Add support for additional sources of randomness to std::random_device, to allow using RDSEED for Intel CPUs and rand_s for Windows. When supported these can be selected using the tokens "rdseed" and

Re: [PATCH] PR libstdc++/85494 use rdseed and rand_s in std::random_device

2019-05-29 Thread Jonathan Wakely
On 29/05/19 15:45 +0100, Jonathan Wakely wrote: Add support for additional sources of randomness to std::random_device, to allow using RDSEED for Intel CPUs and rand_s for Windows. When supported these can be selected using the tokens "rdseed" and "rand_s". For *-w64-mingw32 targets the "default"

[PATCH] PR libstdc++/85494 use rdseed and rand_s in std::random_device

2019-05-29 Thread Jonathan Wakely
Add support for additional sources of randomness to std::random_device, to allow using RDSEED for Intel CPUs and rand_s for Windows. When supported these can be selected using the tokens "rdseed" and "rand_s". For *-w64-mingw32 targets the "default" token will now use rand_s, and for other i?86-*-