This commit is contained in:
Martin 2020-07-22 17:10:15 +02:00
parent 6bb0fd8d77
commit 3ca482ad7d

View File

@ -959,7 +959,7 @@ std::string ServerSettings::generateRandomBinaryKey(void)
{
std::string key;
key.resize(32);
Server->secureRandomFill((char*)key.data(), 32);
Server->secureRandomFill(&key[0], 32);
return key;
}