[Bug libstdc++/85494] implementation of random_device on mingw is useless

dmjpp at hotmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jul 6 12:01:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85494

Dimitrij Mijoski <dmjpp at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmjpp at hotmail dot com

--- Comment #2 from Dimitrij Mijoski <dmjpp at hotmail dot com> ---
I have created a patch that fixes this for mingw-w64 using rand_s()
https://msdn.microsoft.com/en-us/library/sxtz2fa8.aspx

It does not work with mingw.org (reverts to mt19973 as now). mingw.org does not
have rand_s() declared in its headers.


More information about the Gcc-bugs mailing list