summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/websockets/qdefaultmaskgenerator_p.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/websockets/qdefaultmaskgenerator_p.cpp b/src/websockets/qdefaultmaskgenerator_p.cpp
index da166ac..32b3309 100644
--- a/src/websockets/qdefaultmaskgenerator_p.cpp
+++ b/src/websockets/qdefaultmaskgenerator_p.cpp
@@ -90,7 +90,7 @@ QDefaultMaskGenerator::~QDefaultMaskGenerator()
\internal
*/
-bool QDefaultMaskGenerator::seed()
+bool QDefaultMaskGenerator::seed() Q_DECL_NOEXCEPT
{
qsrand(static_cast<uint>(QDateTime::currentMSecsSinceEpoch()));
return true;
@@ -101,7 +101,7 @@ bool QDefaultMaskGenerator::seed()
\internal
*/
-quint32 QDefaultMaskGenerator::nextMask()
+quint32 QDefaultMaskGenerator::nextMask() Q_DECL_NOEXCEPT
{
return quint32((double(qrand()) / RAND_MAX) * std::numeric_limits<quint32>::max());
}