aboutsummaryrefslogtreecommitdiff
path: root/src/addrdb.cpp
diff options
context:
space:
mode:
authorAaron Hook <ahook@protonmail.com>2019-12-29 13:04:02 -0800
committerRene Pickhardt <r.pickhardt@gmail.com>2020-06-22 12:12:22 +0200
commit1cabbddbca615b26aa4510c75f459c28d6fe0afd (patch)
tree04459232e1ee90d4e5a2ba8f625c903177beeff3 /src/addrdb.cpp
parent8ef15e8a86038225afef2487ca23abc10ca5dffa (diff)
refactor: Use uint16_t instead of unsigned short
removed trailing whitespace to make linter happy
Diffstat (limited to 'src/addrdb.cpp')
-rw-r--r--src/addrdb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/addrdb.cpp b/src/addrdb.cpp
index 835c5d6c65..f3e8a19de2 100644
--- a/src/addrdb.cpp
+++ b/src/addrdb.cpp
@@ -8,6 +8,7 @@
#include <addrman.h>
#include <chainparams.h>
#include <clientversion.h>
+#include <cstdint>
#include <hash.h>
#include <random.h>
#include <streams.h>
@@ -36,7 +37,7 @@ template <typename Data>
bool SerializeFileDB(const std::string& prefix, const fs::path& path, const Data& data)
{
// Generate random temporary filename
- unsigned short randv = 0;
+ uint16_t randv = 0;
GetRandBytes((unsigned char*)&randv, sizeof(randv));
std::string tmpfn = strprintf("%s.%04x", prefix, randv);