Re: [Boost-bugs] [Boost C++ Libraries] #10921: Seeding boost::random::mt19937 from a pair of iterators throws an exception

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10921: Seeding boost::random::mt19937 from a pair of iterators throws an exception
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-26 00:17:34


#10921: Seeding boost::random::mt19937 from a pair of iterators throws an exception
--------------------------------------------+---------------------------
  Reporter: Adam Romanek <romanek.adam@…> | Owner: no-maintainer
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: random
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------+---------------------------

Comment (by steven_watanabe):

 This behavior is expected. The iterator constructors require you to
 provide a range sufficiently large to fill the entire state of the
 generator. Seeding with a pair of iterators is provided for backwards
 compatibility. New code should use seed_seq (or std::seed_seq).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10921#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC