Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fx_random.cpp File Reference

(3dce9b5818576f04ce21cec4b3686eda012e5b65)

#include "core/fxcrt/fx_random.h"
#include "build/build_config.h"
#include "core/fxcrt/fx_memory.h"
#include "core/fxcrt/fx_string.h"
#include "core/fxcrt/fx_system.h"
#include <sys/time.h>
#include <unistd.h>
+ Include dependency graph for fx_random.cpp:

Go to the source code of this file.

Macros

#define MT_N   848
 
#define MT_M   456
 
#define MT_Matrix_A   0x9908b0df
 
#define MT_Upper_Mask   0x80000000
 
#define MT_Lower_Mask   0x7fffffff
 

Functions

voidFX_Random_MT_Start (uint32_t dwSeed)
 
uint32_t FX_Random_MT_Generate (void *pContext)
 
void FX_Random_MT_Close (void *pContext)
 
void FX_Random_GenerateMT (uint32_t *pBuffer, int32_t iCount)
 

Macro Definition Documentation

◆ MT_Lower_Mask

#define MT_Lower_Mask   0x7fffffff

Definition at line 18 of file fx_random.cpp.

◆ MT_M

#define MT_M   456

Definition at line 15 of file fx_random.cpp.

◆ MT_Matrix_A

#define MT_Matrix_A   0x9908b0df

Definition at line 16 of file fx_random.cpp.

◆ MT_N

#define MT_N   848

Definition at line 14 of file fx_random.cpp.

◆ MT_Upper_Mask

#define MT_Upper_Mask   0x80000000

Definition at line 17 of file fx_random.cpp.

Function Documentation

◆ FX_Random_GenerateMT()

void FX_Random_GenerateMT ( uint32_t * pBuffer,
int32_t iCount )

Definition at line 127 of file fx_random.cpp.

References FX_Random_MT_Close(), and FX_Random_MT_Generate().

+ Here is the call graph for this function:

◆ FX_Random_MT_Close()

void FX_Random_MT_Close ( void * pContext)

Definition at line 123 of file fx_random.cpp.

Referenced by FX_Random_GenerateMT().

+ Here is the caller graph for this function:

◆ FX_Random_MT_Generate()

uint32_t FX_Random_MT_Generate ( void * pContext)

Definition at line 96 of file fx_random.cpp.

Referenced by FX_Random_GenerateMT().

+ Here is the caller graph for this function:

◆ FX_Random_MT_Start()

void * FX_Random_MT_Start ( uint32_t dwSeed)

Definition at line 85 of file fx_random.cpp.