[Bug libstdc++/85494] New: implementation of random_device on mingw is useless
ookawa_mi at yahoo dot co.jp
gcc-bugzilla@gcc.gnu.org
Sun Apr 22 13:40:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85494
Bug ID: 85494
Summary: implementation of random_device on mingw is useless
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: ookawa_mi at yahoo dot co.jp
Target Milestone: ---
In mingw environment, std::random_device uses mt19937 with fixed seed.
As the main purpose of random_device is seed of mt19937, it is inappropriate.
Please replace to REAL random number generator by rand_s or CryptoAPI.
More information about the Gcc-bugs
mailing list