aboutsummaryrefslogtreecommitdiff
path: root/src/dogecoin.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2021-06-18 08:27:39 +0100
committerRoss Nicoll <[email protected]>2021-07-09 22:06:26 +0100
commitc93261586d691c5d5394cd26720723300f3b7d1f (patch)
tree1c85ff01d7ee4cd41e07ab951f8ad4ec7c525af6 /src/dogecoin.cpp
parentReplace HMAC_SHA256 with Bitcoin's version (diff)
downloaddiscoin-c93261586d691c5d5394cd26720723300f3b7d1f.tar.xz
discoin-c93261586d691c5d5394cd26720723300f3b7d1f.zip
Ignore unsigned overflow warnings
Ignore unsigned overflow warnings in: * Scrypt hash calculation as this is an intentional part of how they behave. * Calculating block subsidy as the Mersenne Twister intentionally expects this behaviour.
Diffstat (limited to 'src/dogecoin.cpp')
-rw-r--r--src/dogecoin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dogecoin.cpp b/src/dogecoin.cpp
index 31cd69bfc..3bc6fb932 100644
--- a/src/dogecoin.cpp
+++ b/src/dogecoin.cpp
@@ -9,6 +9,9 @@
#include <dogecoin.h>
#include <logging.h>
+#ifdef __clang__
+__attribute__((no_sanitize("unsigned-integer-overflow")))
+#endif // __clang__
int static generateMTRandom(unsigned int s, int range)
{
boost::mt19937 gen(s);