Skip to content

Commit

Permalink
fix clang
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Oct 27, 2023
1 parent 09085b9 commit a77198f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions encryption/encryption.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ void PutBigEndian64(uint64_t value, unsigned char* dst) {
}

Status GenerateFileKey(size_t key_size, char* file_key) {
OPENSSL_RET_NOT_OK(
RAND_bytes(reinterpret_cast<unsigned char*>(file_key), key_size),
"Failed to generate random key");
OPENSSL_RET_NOT_OK(RAND_bytes(reinterpret_cast<unsigned char*>(file_key),
static_cast<int>(key_size)),
"Failed to generate random key");
return Status::OK();
}

Expand Down

0 comments on commit a77198f

Please sign in to comment.