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
QRandomGenerator::SystemAndGlobalGenerators Struct Reference
Collaboration diagram for QRandomGenerator::SystemAndGlobalGenerators:

Classes

struct  PRNGLocker
struct  ShortenedSystem

Public Member Functions

constexpr SystemAndGlobalGenerators ()
void confirmLiteral ()
constexpr SystemAndGlobalGenerators ()
void confirmLiteral ()

Static Public Member Functions

static SystemAndGlobalGeneratorsself ()
static QRandomGenerator64system ()
static QRandomGenerator64globalNoInit ()
static void securelySeed (QRandomGenerator *rng)
static SystemAndGlobalGeneratorsself ()
static QRandomGenerator64system ()
static QRandomGenerator64globalNoInit ()
static void securelySeed (QRandomGenerator *rng)

Public Attributes

QBasicMutex globalPRNGMutex
struct QRandomGenerator::SystemAndGlobalGenerators::ShortenedSystem system_
SystemGenerator sys
struct { 
   uchar   data [sizeof(QRandomGenerator64)] 
global_

Detailed Description

Definition at line 313 of file qrandom.cpp.

Constructor & Destructor Documentation

◆ SystemAndGlobalGenerators() [1/2]

QRandomGenerator::SystemAndGlobalGenerators::SystemAndGlobalGenerators ( )
inlineconstexpr

Definition at line 333 of file qrandom.cpp.

References SystemAndGlobalGenerators().

Referenced by SystemAndGlobalGenerators(), and confirmLiteral().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SystemAndGlobalGenerators() [2/2]

QRandomGenerator::SystemAndGlobalGenerators::SystemAndGlobalGenerators ( )
inlineconstexpr

Definition at line 333 of file qrandom.cpp.

Member Function Documentation

◆ confirmLiteral() [1/2]

void QRandomGenerator::SystemAndGlobalGenerators::confirmLiteral ( )
inline

Definition at line 337 of file qrandom.cpp.

References SystemAndGlobalGenerators().

Here is the call graph for this function:

◆ confirmLiteral() [2/2]

void QRandomGenerator::SystemAndGlobalGenerators::confirmLiteral ( )
inline

Definition at line 337 of file qrandom.cpp.

◆ globalNoInit() [1/2]

QRandomGenerator64 * QRandomGenerator::SystemAndGlobalGenerators::globalNoInit ( )
inlinestatic

Definition at line 362 of file qrandom.cpp.

References self().

Referenced by QRandomGenerator::QRandomGenerator(), QRandomGenerator::QRandomGenerator(), QRandomGenerator::QRandomGenerator(), and QRandomGenerator64::global().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ globalNoInit() [2/2]

QRandomGenerator64 * QRandomGenerator::SystemAndGlobalGenerators::globalNoInit ( )
inlinestatic

Definition at line 362 of file qrandom.cpp.

◆ securelySeed() [1/2]

void QRandomGenerator::SystemAndGlobalGenerators::securelySeed ( QRandomGenerator * rng)
inlinestatic

Definition at line 370 of file qrandom.cpp.

References MersenneTwister.

Referenced by QRandomGenerator64::global(), and QRandomGenerator64::securelySeeded().

Here is the caller graph for this function:

◆ securelySeed() [2/2]

void QRandomGenerator::SystemAndGlobalGenerators::securelySeed ( QRandomGenerator * rng)
inlinestatic

Definition at line 370 of file qrandom.cpp.

◆ self() [1/2]

SystemAndGlobalGenerators * QRandomGenerator::SystemAndGlobalGenerators::self ( )
inlinestatic

Definition at line 346 of file qrandom.cpp.

Referenced by QRandomGenerator::SystemAndGlobalGenerators::PRNGLocker::~PRNGLocker(), globalNoInit(), QRandomGenerator::SystemGenerator::self(), and system().

Here is the caller graph for this function:

◆ self() [2/2]

SystemAndGlobalGenerators * QRandomGenerator::SystemAndGlobalGenerators::self ( )
inlinestatic

Definition at line 346 of file qrandom.cpp.

◆ system() [1/2]

QRandomGenerator64 * QRandomGenerator::SystemAndGlobalGenerators::system ( )
inlinestatic

Definition at line 353 of file qrandom.cpp.

References self().

Referenced by QRandomGenerator64::system().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ system() [2/2]

QRandomGenerator64 * QRandomGenerator::SystemAndGlobalGenerators::system ( )
inlinestatic

Definition at line 353 of file qrandom.cpp.

Member Data Documentation

◆ data

uchar QRandomGenerator::SystemAndGlobalGenerators::data[sizeof(QRandomGenerator64)]

Definition at line 330 of file qrandom.cpp.

◆ [struct]

struct { ... } QRandomGenerator::SystemAndGlobalGenerators::global_

◆ globalPRNGMutex

QBasicMutex QRandomGenerator::SystemAndGlobalGenerators::globalPRNGMutex

Definition at line 326 of file qrandom.cpp.

◆ sys

SystemGenerator QRandomGenerator::SystemAndGlobalGenerators::sys

Definition at line 328 of file qrandom.cpp.

Referenced by QRandomGenerator::SystemGenerator::self().

◆ system_

struct QRandomGenerator::SystemAndGlobalGenerators::ShortenedSystem QRandomGenerator::SystemAndGlobalGenerators::system_

The documentation for this struct was generated from the following file: