fix a bug that caused std::hex to get written into std::cerr

reported by gfgtdf
This commit is contained in:
Chris Beck 2014-11-19 13:40:23 -05:00
parent f5e2204326
commit 548c5d74ae

View file

@ -15,6 +15,7 @@
#include "mt_rng.hpp"
#include "seed_rng.hpp"
#include "config.hpp"
#include "formatter.hpp"
#include "log.hpp"
#include <sstream>
#include <iomanip>
@ -71,8 +72,8 @@ void mt_rng::seed_random(const uint32_t seed, const unsigned int call_count)
random_seed_ = seed;
mt_.seed(random_seed_);
discard(call_count); //mt_.discard(call_count);
DBG_RND << "Seeded random with " << std::hex << random_seed_ << " with "
<< random_calls_ << " calls." << std::endl;
DBG_RND << (formatter() << "Seeded random with " << std::hex << random_seed_ << " with "
<< random_calls_ << " calls.").str() << std::endl;
}
void mt_rng::seed_random(const std::string & seed_str, const unsigned int call_count)