[Boost-bugs] [Boost C++ Libraries] #1247: Typos in "boost/random/additive_combine.hpp", lines 68-69

Subject: [Boost-bugs] [Boost C++ Libraries] #1247: Typos in "boost/random/additive_combine.hpp", lines 68-69
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-12 15:15:48


#1247: Typos in "boost/random/additive_combine.hpp", lines 68-69
-----------------------+----------------------------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: random | Version: Boost 1.34.1
 Severity: Problem | Keywords: additive_combine.hpp, bug, seed
-----------------------+----------------------------------------------------
 The following function from lines 65-70 of
 â€œboost/random/additive_combine.hpp” reads the following:

 â€¦
   void seed(typename MLCG1::result_type seed1,
             typename MLCG2::result_type seed2)
   {
     _mlcg1(seed1);
     _mlcg2(seed2);
   }
 â€¦

 Which is supposed to seed the RNG class with two values, one for each
 simpler RNG member class. This should become:

 â€¦
   void seed(typename MLCG1::result_type seed1,
             typename MLCG2::result_type seed2)
   {
     _mlcg1.seed(seed1);
     _mlcg2.seed(seed2);
   }
 â€¦

 By the way this is a great library!

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1247>
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:49:56 UTC