Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Go to the source code of this file.
Classes | |
struct | cRandomDeviceSeeder |
Utility to seed a random engine with maximal entropy from random_device. More... | |
class | cRandomWrapper< RandomEngine > |
Class to wrap any random engine to provide a more convenient interface. More... | |
struct | Detail::cUniformImpl< IntType > |
Namespaces | |
Detail | |
Typedefs | |
using | cFastRandom = cRandomWrapper< std::minstd_rand > |
template<class IntType > | |
using | Detail::cUniform = typename cUniformImpl< IntType >::type |
uniform_int_distribution<char> is undefined so this aliases a valid type. More... | |
template<class Char > | |
using | Detail::IsChar = typename std::is_same< typename std::make_signed< Char >::type, signed char >::type |
Aliases true_type if Char is any variant of char ignoring signed-ness. More... | |
using | MTRand = cRandomWrapper< std::mt19937 > |
Functions | |
MTRand & | GetRandomProvider () |
Returns the current thread's random number source. More... | |
UInt32 | Detail::GetRandomSeed () |
Returns a low quality seed. More... | |
using cFastRandom = cRandomWrapper<std::minstd_rand> |
Definition at line 203 of file FastRandom.h.
using MTRand = cRandomWrapper<std::mt19937> |
Definition at line 204 of file FastRandom.h.
MTRand& GetRandomProvider | ( | ) |
Returns the current thread's random number source.
Definition at line 12 of file FastRandom.cpp.