Skip to content

Commit

Permalink
Update to the latest oatpp API
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed May 17, 2024
1 parent ff03a65 commit e5b67ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oatpp-websocket/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
namespace oatpp { namespace websocket {

void Utils::generateMaskForFrame(Frame::Header& frameHeader) {
oatpp::utils::random::Random::randomBytes(frameHeader.mask, 4);
oatpp::utils::Random::randomBytes(frameHeader.mask, 4);
}

oatpp::String Utils::generateKey() {
oatpp::String key(16);
oatpp::utils::random::Random::randomBytes((p_char8) key->data(), key->size());
oatpp::utils::Random::randomBytes((p_char8) key->data(), key->size());
return oatpp::encoding::Base64::encode(key);
}

Expand Down

0 comments on commit e5b67ad

Please sign in to comment.