We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa05ddd commit face961Copy full SHA for face961
src/dbwrapper.cpp
@@ -220,10 +220,9 @@ const unsigned int CDBWrapper::OBFUSCATE_KEY_NUM_BYTES = 8;
220
*/
221
std::vector<unsigned char> CDBWrapper::CreateObfuscateKey() const
222
{
223
- unsigned char buff[OBFUSCATE_KEY_NUM_BYTES];
224
- GetRandBytes(buff, OBFUSCATE_KEY_NUM_BYTES);
225
- return std::vector<unsigned char>(&buff[0], &buff[OBFUSCATE_KEY_NUM_BYTES]);
226
-
+ std::vector<uint8_t> ret(OBFUSCATE_KEY_NUM_BYTES);
+ GetRandBytes(ret.data(), OBFUSCATE_KEY_NUM_BYTES);
+ return ret;
227
}
228
229
bool CDBWrapper::IsEmpty()
0 commit comments