diff options
author | Matteo Bernardini | 2020-02-29 10:21:37 +0100 |
---|---|---|
committer | Matteo Bernardini | 2020-02-29 10:21:37 +0100 |
commit | 37498e325fe958c6948fae9ee70e16ec9427d9a4 (patch) | |
tree | 6a9ede00269c6dd697d95d5c43739ec0741dc379 /desktop/rss-guard/02_fix_random_class_name.patch | |
parent | e672baf11d590fdc9d8bd90c2cd50fc6232efd4e (diff) | |
download | slackbuilds-409ab3c914ce10676bfe6379ae99c7484e007a99.tar.gz |
20200229.1 global branch merge.current-20200229.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'desktop/rss-guard/02_fix_random_class_name.patch')
-rw-r--r-- | desktop/rss-guard/02_fix_random_class_name.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/desktop/rss-guard/02_fix_random_class_name.patch b/desktop/rss-guard/02_fix_random_class_name.patch new file mode 100644 index 0000000000..06c49f7aba --- /dev/null +++ b/desktop/rss-guard/02_fix_random_class_name.patch @@ -0,0 +1,24 @@ +From d347ba63072ab13c0dbc1792d1a2b837af997a46 Mon Sep 17 00:00:00 2001 +From: Martin Rotter <rotter@praktik.cz> +Date: Thu, 6 Jun 2019 11:35:25 +0200 +Subject: [PATCH] Fix random class name + +--- + src/miscellaneous/textfactory.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/miscellaneous/textfactory.cpp b/src/miscellaneous/textfactory.cpp +index 48597235..1ac6f049 100755 +--- a/src/miscellaneous/textfactory.cpp ++++ b/src/miscellaneous/textfactory.cpp +@@ -151,8 +151,8 @@ quint64 TextFactory::initializeSecretEncryptionKey() { + quint64 TextFactory::generateSecretEncryptionKey() { + std::random_device rd; + std::mt19937 mt(rd()); +- std::uniform_int<quint64> dist(std::numeric_limits<quint64>().min() + 1000000UL, +- std::numeric_limits<quint64>().max()); ++ std::uniform_int_distribution<quint64> dist(std::numeric_limits<quint64>().min() + 1000000UL, ++ std::numeric_limits<quint64>().max()); + + return dist(mt); + } |