diff options
author | pasta <pasta@dashboost.org> | 2022-01-31 19:32:59 +0700 |
---|---|---|
committer | pasta <pasta@dashboost.org> | 2022-04-22 09:04:39 -0500 |
commit | ab1ea29ba1b8379a21fabd3dc859552c470a6421 (patch) | |
tree | 799d831027961f820f5472ce75e93f14cd3e5217 /src/blockencodings.cpp | |
parent | 505ba3966562b10d6dd4162f3216a120c73a4edb (diff) | |
download | bitcoin-ab1ea29ba1b8379a21fabd3dc859552c470a6421.tar.xz |
refactor: make GetRand a template, remove GetRandInt
Diffstat (limited to 'src/blockencodings.cpp')
-rw-r--r-- | src/blockencodings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockencodings.cpp b/src/blockencodings.cpp index aa111b5939..2a7bf9397c 100644 --- a/src/blockencodings.cpp +++ b/src/blockencodings.cpp @@ -17,7 +17,7 @@ #include <unordered_map> CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs(const CBlock& block, bool fUseWTXID) : - nonce(GetRand(std::numeric_limits<uint64_t>::max())), + nonce(GetRand<uint64_t>()), shorttxids(block.vtx.size() - 1), prefilledtxn(1), header(block) { FillShortTxIDSelector(); //TODO: Use our mempool prior to block acceptance to predictively fill more than just the coinbase |