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.


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


static std::mt19937 generator

Function Documentation

◆ cf_random()

uint32_t cf_random ( void  )

Definition at line 5 of file cf_random.cpp.

References generator.

◆ 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

Definition at line 3 of file cf_random.cpp.

Referenced by cf_random(), and cf_srandom().