Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 ()
 

Static Public Member Functions

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 312 of file qrandom.cpp.

Constructor & Destructor Documentation

◆ SystemAndGlobalGenerators()

constexpr QRandomGenerator::SystemAndGlobalGenerators::SystemAndGlobalGenerators ( )
inlineconstexpr

Definition at line 332 of file qrandom.cpp.

Member Function Documentation

◆ confirmLiteral()

void QRandomGenerator::SystemAndGlobalGenerators::confirmLiteral ( )
inline

Definition at line 336 of file qrandom.cpp.

References Q_UNUSED.

◆ globalNoInit()

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

Definition at line 361 of file qrandom.cpp.

References self().

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

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

◆ securelySeed()

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

Definition at line 369 of file qrandom.cpp.

References MersenneTwister, and self().

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

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

◆ self()

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

Definition at line 345 of file qrandom.cpp.

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

+ Here is the caller graph for this function:

◆ system()

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

Definition at line 352 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:

Member Data Documentation

◆ data

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

Definition at line 329 of file qrandom.cpp.

◆ [struct]

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

◆ globalPRNGMutex

QBasicMutex QRandomGenerator::SystemAndGlobalGenerators::globalPRNGMutex

Definition at line 325 of file qrandom.cpp.

◆ sys

SystemGenerator QRandomGenerator::SystemAndGlobalGenerators::sys

Definition at line 327 of file qrandom.cpp.

◆ system_

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

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