Skip to content

Commit

Permalink
fix a bug that caused std::hex to get written into std::cerr
Browse files Browse the repository at this point in the history
reported by gfgtdf
  • Loading branch information
cbeck88 committed Nov 19, 2014
1 parent f5e2204 commit 548c5d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mt_rng.cpp
Expand Up @@ -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>
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 548c5d7

Please sign in to comment.