The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Variables
random_new.cpp File Reference
#include "random_new.hpp"
#include "log.hpp"
#include <cassert>
#include <stdlib.h>
#include <boost/random/mersenne_twister.hpp>
#include <time.h>
Include dependency graph for random_new.cpp:

Go to the source code of this file.

Namespaces

 random_new
 

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 * random_new::generator = &rng::default_instance()
 This generator is automatically synced during synced context. More...
 

Macro Definition Documentation

#define DBG_RND   LOG_STREAM(debug, log_random)

Definition at line 25 of file random_new.cpp.

#define ERR_RND   LOG_STREAM(err, log_random)

Definition at line 28 of file random_new.cpp.

#define LOG_RND   LOG_STREAM(info, log_random)

Definition at line 26 of file random_new.cpp.

#define WRN_RND   LOG_STREAM(warn, log_random)

Definition at line 27 of file random_new.cpp.

Variable Documentation

lg::log_domain log_random("random")
static