This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/42408] New: Missing templatized seed()
- From: "piotr dot wyderski at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2009 17:49:10 -0000
- Subject: [Bug libstdc++/42408] New: Missing templatized seed()
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
There is no templatized user-provided seed()
and related constructors in the C++0x random
number generation library. The draft N3000 says
that the engines (Mersenne Twister, among others)
have
template<SeedSequence Sseq> explicit mersenne_twister_engine(Sseq& q);
template<SeedSequence Sseq> void seed(Sseq& q);
in order to use a user-supplied seed generator.
GCC classes accept only std::seed_seq, which in
some situations doesn't provide high-enough entropy.
--
Summary: Missing templatized seed()
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: piotr dot wyderski at gmail dot com
GCC host triplet: Cygwin/GCC4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42408