refactor: Use uint16_t instead of unsigned short

removed trailing whitespace to make linter happy
This commit is contained in:
Aaron Hook
2019-12-29 13:04:02 -08:00
committed by Rene Pickhardt
parent 8ef15e8a86
commit 1cabbddbca
9 changed files with 28 additions and 22 deletions

View File

@@ -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);