aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorpasta <pasta@dashboost.org>2022-01-31 19:32:59 +0700
committerpasta <pasta@dashboost.org>2022-04-22 09:04:39 -0500
commitab1ea29ba1b8379a21fabd3dc859552c470a6421 (patch)
tree799d831027961f820f5472ce75e93f14cd3e5217 /src/init.cpp
parent505ba3966562b10d6dd4162f3216a120c73a4edb (diff)
downloadbitcoin-ab1ea29ba1b8379a21fabd3dc859552c470a6421.tar.xz
refactor: make GetRand a template, remove GetRandInt
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index aa1cff761e..dc99e78555 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1268,8 +1268,8 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
assert(!node.banman);
node.banman = std::make_unique<BanMan>(gArgs.GetDataDirNet() / "banlist", &uiInterface, args.GetIntArg("-bantime", DEFAULT_MISBEHAVING_BANTIME));
assert(!node.connman);
- node.connman = std::make_unique<CConnman>(GetRand(std::numeric_limits<uint64_t>::max()),
- GetRand(std::numeric_limits<uint64_t>::max()),
+ node.connman = std::make_unique<CConnman>(GetRand<uint64_t>(),
+ GetRand<uint64_t>(),
*node.addrman, *node.netgroupman, args.GetBoolArg("-networkactive", true));
assert(!node.fee_estimator);