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
22
QT_BEGIN_NAMESPACE
23
24
enum
QRandomGeneratorControl
{
25
UseSystemRNG
= 1,
26
SkipSystemRNG
= 2,
27
SkipHWRNG
= 4,
28
SetRandomData
= 8,
29
30
// 28 bits
31
RandomDataMask
= 0xfffffff0
32
};
33
34
enum
RNGType
{
35
SystemRNG
= 0,
36
MersenneTwister
= 1
37
};
38
39
#if defined(QT_BUILD_INTERNAL)
40
extern
Q_CORE_EXPORT QBasicAtomicInteger<uint>
qt_randomdevice_control
;
41
#else
42
static
const
struct
43
{
44
uint
loadAcquire()
const
{
return
0; }
45
}
qt_randomdevice_control
;
46
#endif
47
48
QRandomGenerator::InitialRandomData
qt_initial_random_value
() noexcept;
49
50
QT_END_NAMESPACE
51
52
#endif
// QRANDOM_P_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
qglobal_p.h
qrandom.h
RNGType
RNGType
Definition
qrandom_p.h:34
MersenneTwister
@ MersenneTwister
Definition
qrandom_p.h:36
SystemRNG
@ SystemRNG
Definition
qrandom_p.h:35
qt_randomdevice_control
static const struct @9 qt_randomdevice_control
QRandomGeneratorControl
QRandomGeneratorControl
Definition
qrandom_p.h:24
UseSystemRNG
@ UseSystemRNG
Definition
qrandom_p.h:25
SkipSystemRNG
@ SkipSystemRNG
Definition
qrandom_p.h:26
SetRandomData
@ SetRandomData
Definition
qrandom_p.h:28
SkipHWRNG
@ SkipHWRNG
Definition
qrandom_p.h:27
RandomDataMask
@ RandomDataMask
Definition
qrandom_p.h:31
qt_initial_random_value
QRandomGenerator::InitialRandomData qt_initial_random_value() noexcept
Definition
qrandom.cpp:1288
uint
unsigned int uint
Definition
qtypes.h:34
qtbase
src
corelib
global
qrandom_p.h
Generated by
1.10.0