Change FormatArrayAsHex to be uppercase by default

To match upstream
This commit is contained in:
Jonathan G Rennison
2024-05-20 18:30:57 +01:00
parent 48910a8b7d
commit 88d7be1d99
4 changed files with 7 additions and 5 deletions

View File

@@ -219,7 +219,7 @@ std::string GenerateCompanyPasswordHash(const std::string &password, const std::
checksum.Append(salted_password_string.data(), salted_password_string.size());
checksum.Finish(digest);
return FormatArrayAsHex(digest);
return FormatArrayAsHex(digest, false);
}
/**
@@ -1375,7 +1375,7 @@ std::string NetworkGenerateRandomKeyString(uint bytes)
uint8_t *key = AllocaM(uint8_t, bytes);
RandomBytesWithFallback({ key, bytes });
return FormatArrayAsHex({key, bytes});
return FormatArrayAsHex({key, bytes}, false);
}
/** This tries to launch the network for a given OS */