diff options
author | Pieter Wuille <pieter@wuille.net> | 2024-03-10 15:16:20 -0400 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2024-07-01 10:26:46 -0400 |
commit | 6cfdc5b104caf9952393f9dac2a36539d964077f (patch) | |
tree | 1cef33e30adb25e9bef98e9eab2561d0c58f2f04 /test | |
parent | 8cc2f45065fc1864f879248d1e1444588e27076b (diff) | |
download | bitcoin-6cfdc5b104caf9952393f9dac2a36539d964077f.tar.xz |
random: convert XoRoShiRo128PlusPlus into full RNG
Convert XoRoShiRo128PlusPlus into a full RandomMixin-based RNG class,
providing all utility functionality that FastRandomContext has. In doing so,
it is renamed to InsecureRandomContext, highlighting its non-cryptographic
nature.
To do this, a fillrand fallback is added to RandomMixin (where it is used by
InsecureRandomContext), but FastRandomContext still uses its own fillrand.
Diffstat (limited to 'test')
-rw-r--r-- | test/sanitizer_suppressions/ubsan | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sanitizer_suppressions/ubsan b/test/sanitizer_suppressions/ubsan index 7d8b0fdfd0..94303f237c 100644 --- a/test/sanitizer_suppressions/ubsan +++ b/test/sanitizer_suppressions/ubsan @@ -57,8 +57,8 @@ unsigned-integer-overflow:CBlockPolicyEstimator::processBlockTx unsigned-integer-overflow:TxConfirmStats::EstimateMedianVal unsigned-integer-overflow:prevector.h unsigned-integer-overflow:EvalScript -unsigned-integer-overflow:XoRoShiRo128PlusPlus::operator() -unsigned-integer-overflow:XoRoShiRo128PlusPlus::SplitMix64 +unsigned-integer-overflow:InsecureRandomContext::rand64 +unsigned-integer-overflow:InsecureRandomContext::SplitMix64 unsigned-integer-overflow:bitset_detail::PopCount implicit-integer-sign-change:CBlockPolicyEstimator::processBlockTx implicit-integer-sign-change:SetStdinEcho @@ -76,6 +76,6 @@ shift-base:arith_uint256.cpp shift-base:crypto/ shift-base:streams.h shift-base:FormatHDKeypath -shift-base:XoRoShiRo128PlusPlus::operator() +shift-base:InsecureRandomContext::rand64 shift-base:RandomMixin<*>::randbits shift-base:RandomMixin<*>::randbits<*> |