Crossfire Server, Trunk
cf_random.cpp File Reference
#include <random>
+ Include dependency graph for cf_random.cpp:

Go to the source code of this file.

Functions

uint32_t cf_random (void)
 
void cf_srandom (unsigned long seed)
 

Variables

static std::mt19937 generator
 

Function Documentation

◆ cf_random()

uint32_t cf_random ( void  )

Definition at line 5 of file cf_random.cpp.

References generator.

Referenced by check_loaded_object(), and test_stand_in_light().

+ Here is the caller graph for this function:

◆ cf_srandom()

void cf_srandom ( unsigned long  seed)

Definition at line 9 of file cf_random.cpp.

References generator.

Referenced by do_magic(), and START_TEST().

+ Here is the caller graph for this function:

Variable Documentation

◆ generator

std::mt19937 generator
static

Definition at line 3 of file cf_random.cpp.

Referenced by cf_random(), and cf_srandom().