![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
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 () |
Variables | |
| struct { | |
| } | qt_randomdevice_control |
| Enumerator | |
|---|---|
| UseSystemRNG | |
| SkipSystemRNG | |
| SkipHWRNG | |
| SetRandomData | |
| RandomDataMask | |
Definition at line 24 of file qrandom_p.h.
| enum RNGType |
| Enumerator | |
|---|---|
| SystemRNG | |
| MersenneTwister | |
Definition at line 34 of file qrandom_p.h.
|
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 190 of file qrandom.cpp.
| const struct { ... } qt_randomdevice_control |