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
Go to the documentation of this file.
1// Copyright (C) 2017 Intel Corporation.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QRANDOM_P_H
5#define QRANDOM_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qglobal_p.h"
19#include <qrandom.h>
20#include <private/qsimd_p.h>
21
23
29
30 // 28 bits
31 RandomDataMask = 0xfffffff0
32};
33
38
39#if defined(QT_BUILD_INTERNAL)
40extern Q_CORE_EXPORT QBasicAtomicInteger<uint> qt_randomdevice_control;
41#else
42static const struct
43{
44 uint loadAcquire() const { return 0; }
46#endif
47
48QRandomGenerator::InitialRandomData qt_initial_random_value() noexcept;
49
51
52#endif // QRANDOM_P_H
Combined button and popup list for selecting options.
RNGType
Definition qrandom_p.h:34
@ MersenneTwister
Definition qrandom_p.h:36
@ SystemRNG
Definition qrandom_p.h:35
static const struct @9 qt_randomdevice_control
QRandomGeneratorControl
Definition qrandom_p.h:24
@ UseSystemRNG
Definition qrandom_p.h:25
@ SkipSystemRNG
Definition qrandom_p.h:26
@ SetRandomData
Definition qrandom_p.h:28
@ SkipHWRNG
Definition qrandom_p.h:27
@ RandomDataMask
Definition qrandom_p.h:31
QRandomGenerator::InitialRandomData qt_initial_random_value() noexcept
Definition qrandom.cpp:1288
unsigned int uint
Definition qtypes.h:34