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
qrandom_p.h File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include "qglobal_p.h"
#include <qrandom.h>
#include <private/qsimd_p.h>
+ Include dependency graph for qrandom_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  QRandomGeneratorControl {
  UseSystemRNG = 1 , SkipSystemRNG = 2 , SkipHWRNG = 4 , SetRandomData = 8 ,
  RandomDataMask = 0xfffffff0
}
 
enum  RNGType { SystemRNG = 0 , MersenneTwister = 1 }
 

Functions

QRandomGenerator::InitialRandomData qt_initial_random_value () noexcept
 

Variables

struct { 
 
qt_randomdevice_control 
 

Enumeration Type Documentation

◆ QRandomGeneratorControl

Enumerator
UseSystemRNG 
SkipSystemRNG 
SkipHWRNG 
SetRandomData 
RandomDataMask 

Definition at line 24 of file qrandom_p.h.

◆ RNGType

enum RNGType
Enumerator
SystemRNG 
MersenneTwister 

Definition at line 34 of file qrandom_p.h.

Function Documentation

◆ qt_initial_random_value()

QRandomGenerator::InitialRandomData qt_initial_random_value ( )
noexcept

Returns an initial random value (useful for QHash's global seed). This function attempts to use OS-provided random values to avoid initializing QRandomGenerator::system() and qsimd.cpp.

Note: on some systems, this functionn may rerturn the same value every time it is called.

Definition at line 187 of file qrandom.cpp.

Variable Documentation

◆ [struct]

const struct { ... } qt_randomdevice_control