The Battle for Wesnoth  1.19.0-dev
Namespaces | Macros | Variables
random.cpp File Reference
#include "random.hpp"
#include "log.hpp"
#include <boost/random/random_device.hpp>
#include <cassert>
#include <limits>
#include <random>
Include dependency graph for random.cpp:

Go to the source code of this file.

Namespaces

 randomness
 

Macros

#define DBG_RND   LOG_STREAM(debug, log_random)
 
#define LOG_RND   LOG_STREAM(info, log_random)
 
#define WRN_RND   LOG_STREAM(warn, log_random)
 
#define ERR_RND   LOG_STREAM(err, log_random)
 

Variables

static lg::log_domain log_random ("random")
 
rng * randomness::generator = &rng::default_instance()
 This generator is automatically synced during synced context. More...
 

Macro Definition Documentation

◆ DBG_RND

#define DBG_RND   LOG_STREAM(debug, log_random)

Definition at line 26 of file random.cpp.

◆ ERR_RND

#define ERR_RND   LOG_STREAM(err, log_random)

Definition at line 29 of file random.cpp.

◆ LOG_RND

#define LOG_RND   LOG_STREAM(info, log_random)

Definition at line 27 of file random.cpp.

◆ WRN_RND

#define WRN_RND   LOG_STREAM(warn, log_random)

Definition at line 28 of file random.cpp.

Variable Documentation

◆ log_random

lg::log_domain log_random("random") ( "random"  )
static