Opened 15 years ago
Closed 15 years ago
#1247 closed Bugs (fixed)
Typos in "boost/random/additive_combine.hpp", lines 68-69
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | To Be Determined | Component: | random |
Version: | Boost 1.34.1 | Severity: | Problem |
Keywords: | additive_combine.hpp, bug, seed | Cc: | Jens Maurer; Douglas Gregor |
Description
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!
Change History (2)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In fact, this was fixed almost two years ago. Closing.
Note:
See TracTickets
for help on using tickets.
This appears to be fixed in the trunk, is it okay to close this ticket?