![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qrandom.h"#include "qrandom_p.h"#include <qendian.h>#include <qmutex.h>#include <qobjectdefs.h>#include <QtCore/qtcoreglobal.h>#include <errno.h>#include "qdeadlinetimer.h"#include "qhashfunctions.h"#include <cstdio>#include <cstdlib>#include <mutex>#include <qt_windows.h>#include <assert.h>Go to the source code of this file.
Macros | |
| #define | _CRT_RAND_S |
| #define | Q_ASSERT(cond) |
| #define | Q_ASSERT_X(cond, x, msg) |
Enumerations | |
| enum | { FillBufferNoexcept = true , FillBufferNoexcept = true } |
| enum | { FillBufferNoexcept = true , FillBufferNoexcept = true } |
Functions | |
| DECLSPEC_IMPORT BOOLEAN WINAPI | SystemFunction036 (PVOID RandomBuffer, ULONG RandomBufferLength) |
| static void | fallback_update_seed (unsigned valuevalue) |
| static Q_NEVER_INLINE void | fallback_fill (quint32 *ptr, qsizetype leftleft) noexcept |
| bool | operator== (const QRandomGenerator &rng1, const QRandomGenerator &rng2) |
| template<typename Generator, typename FillBufferType, typename T> | |
| static qsizetype | callFillBuffer (FillBufferType ff, T *vv) |
| QRandomGenerator::InitialRandomData | qt_initial_random_value () |
Variables | |
| static Q_CONSTINIT QBasicAtomicInteger< unsigned > | seed = Q_BASIC_ATOMIC_INITIALIZER(0U) |
| static Q_CONSTINIT std::once_flag | fallbackFillWarningFlag |
| #define _CRT_RAND_S |
Definition at line 7 of file qrandom.cpp.
| #define Q_ASSERT | ( | cond | ) |
Definition at line 52 of file qrandom.cpp.
| #define Q_ASSERT_X | ( | cond, | |
| x, | |||
| msg ) |
Definition at line 53 of file qrandom.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| FillBufferNoexcept | |
| FillBufferNoexcept | |
Definition at line 61 of file qrandom.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| FillBufferNoexcept | |
| FillBufferNoexcept | |
Definition at line 61 of file qrandom.cpp.
|
static |
Definition at line 1312 of file qrandom.cpp.
|
staticnoexcept |
Definition at line 231 of file qrandom.cpp.
|
static |
Definition at line 212 of file qrandom.cpp.
| bool operator== | ( | const QRandomGenerator & | rng1, |
| const QRandomGenerator & | rng2 ) |
Definition at line 1265 of file qrandom.cpp.
|
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 1333 of file qrandom.cpp.
| DECLSPEC_IMPORT BOOLEAN WINAPI SystemFunction036 | ( | PVOID | RandomBuffer, |
| ULONG | RandomBufferLength ) |
|
static |
Definition at line 221 of file qrandom.cpp.
|
static |
Definition at line 211 of file qrandom.cpp.