mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Fix cast
This commit is contained in:
parent
6bb0fd8d77
commit
3ca482ad7d
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user