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

(08e24b2ba6847221abd35e9b994206b764d6b322)

#include "core/fxcrt/fx_random.h"
#include <array>
#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 (pdfium::span< uint32_t > pBuffer)

Macro Definition Documentation

◆ MT_Lower_Mask

#define MT_Lower_Mask   0x7fffffff

Definition at line 20 of file fx_random.cpp.

◆ MT_M

#define MT_M   456

Definition at line 17 of file fx_random.cpp.

◆ MT_Matrix_A

#define MT_Matrix_A   0x9908b0df

Definition at line 18 of file fx_random.cpp.

◆ MT_N

#define MT_N   848

Definition at line 16 of file fx_random.cpp.

◆ MT_Upper_Mask

#define MT_Upper_Mask   0x80000000

Definition at line 19 of file fx_random.cpp.

Function Documentation

◆ FX_Random_GenerateMT()

void FX_Random_GenerateMT ( pdfium::span< uint32_t > pBuffer)

Definition at line 128 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 124 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 98 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 87 of file fx_random.cpp.