mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 22:57:47 +00:00
fix a bug that caused std::hex to get written into std::cerr
reported by gfgtdf
This commit is contained in:
parent
f5e2204326
commit
548c5d74ae
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user