From ab1ea29ba1b8379a21fabd3dc859552c470a6421 Mon Sep 17 00:00:00 2001 From: pasta Date: Mon, 31 Jan 2022 19:32:59 +0700 Subject: refactor: make GetRand a template, remove GetRandInt --- src/blockencodings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/blockencodings.cpp') 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 CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs(const CBlock& block, bool fUseWTXID) : - nonce(GetRand(std::numeric_limits::max())), + nonce(GetRand()), 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 -- cgit v1.2.3