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++/42408] New: Missing templatized seed()


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


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