This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/85494] New: implementation of random_device on mingw is useless
- From: "ookawa_mi at yahoo dot co.jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 Apr 2018 13:40:27 +0000
- Subject: [Bug libstdc++/85494] New: implementation of random_device on mingw is useless
- Auto-submitted: auto-generated
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.