aboutsummaryrefslogtreecommitdiff
path: root/test/sanitizer_suppressions
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2024-03-10 12:38:14 -0400
committerPieter Wuille <pieter@wuille.net>2024-07-01 10:26:46 -0400
commitddb7d26cfd96c1f626def4755e0e1b5aaac94d3e (patch)
tree6a460803a2e6cf9ea92998fc3e8b19d5dea276d6 /test/sanitizer_suppressions
parent21ce9d8658fed0d3e4552e8b02a6902cb31c572e (diff)
random: add RandomMixin::randbits with compile-known bits
In many cases, it is known at compile time how many bits are requested from randbits. Provide a variant of randbits that accepts this number as a template, to make sure the compiler can make use of this knowledge. This is used immediately in rand32() and randbool(), and a few further call sites.
Diffstat (limited to 'test/sanitizer_suppressions')
-rw-r--r--test/sanitizer_suppressions/ubsan1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/sanitizer_suppressions/ubsan b/test/sanitizer_suppressions/ubsan
index be9c7fb300..d949aabf84 100644
--- a/test/sanitizer_suppressions/ubsan
+++ b/test/sanitizer_suppressions/ubsan
@@ -77,3 +77,4 @@ shift-base:streams.h
shift-base:FormatHDKeypath
shift-base:xoroshiro128plusplus.h
shift-base:RandomMixin<*>::randbits
+shift-base:RandomMixin<*>::randbits<*>