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

Jonathan Wakely jwakely@redhat.com
Fri May 31 09:46:00 GMT 2019


On 31/05/19 09:26 +0000, 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/random_device/cons/token.cc execution test
>
>26_numerics/random/random_device/cons/token.cc:67: void test03(): Assertion 'count != 0' failed.
>
>(if i add "default" to the token list in test03 then it passes)

Hmm, then I messed something up. If the "default" token works then one
of the others should too (I would expect that to be "mt19937" for bare
metal).

I'll take a look, thanks.



More information about the Libstdc++ mailing list