This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]