Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1037654
qt-rand-adapter.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
642 B
Referenced Files
None
Subscribers
None
qt-rand-adapter.cpp
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2024 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#include
<kazv-defs.hpp>
#include
<QRandomGenerator>
#include
"qt-rand-adapter.hpp"
struct
QtRandAdapter
::
Private
{
QRandomGenerator
generator
;
};
QtRandAdapter
::
QtRandAdapter
()
:
m_d
(
new
Private
{
QRandomGenerator
::
securelySeeded
()})
{
}
QtRandAdapter
::~
QtRandAdapter
()
=
default
;
QtRandAdapter
::
QtRandAdapter
(
QtRandAdapter
&&
)
=
default
;
QtRandAdapter
&
QtRandAdapter
::
operator
=
(
QtRandAdapter
&&
)
=
default
;
unsigned
int
QtRandAdapter::operator
()()
{
return
m_d
->
generator
();
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, May 14, 7:35 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
89509
Default Alt Text
qt-rand-adapter.cpp (642 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment