18 #define DBG_RND LOG_STREAM(debug, log_random)
19 #define LOG_RND LOG_STREAM(info, log_random)
20 #define WRN_RND LOG_STREAM(warn, log_random)
21 #define ERR_RND LOG_STREAM(err, log_random)
26 : has_valid_seed_(false), seed_generator_(seed_generator), gen_()
38 LOG_RND <<
"random_new::rng::next_random_impl returned " << retv;
static lg::log_domain log_random("random")
virtual uint32_t next_random_impl()
uint32_t get_next_random()
Get a new random number.
void seed_random(const std::string &seed, const unsigned int call_count=0)
Same as uint32_t version, but uses a stringstream to convert given hex string.
synced_rng(std::function< std::string()> seed_generator)
std::function< std::string()> seed_generator_
Standard logging facilities (interface).
GLsizei const GLcharARB ** string