Skip to content

Commit

Permalink
fix make fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Feb 20, 2025
1 parent 0bde5d7 commit c0bf307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/fuzzer/src/RTC/FuzzerRateCalculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "DepLibUV.hpp"
#include "Utils.hpp"
#include "RTC/RateCalculator.hpp"
#include "RTC/RtpPacket.hpp" // RTC::MtuSize
#include "RTC/Consts.hpp"

static ::RTC::RateCalculator rateCalculator;
static uint64_t nowMs;
Expand All @@ -26,7 +26,7 @@ void Fuzzer::RTC::RateCalculator::Fuzz(const uint8_t* data, size_t len)
}

auto size =
static_cast<size_t>(Utils::Crypto::GetRandomUInt(0u, static_cast<uint32_t>(::RTC::MtuSize)));
static_cast<size_t>(Utils::Crypto::GetRandomUInt(0u, static_cast<uint32_t>(::RTC::Consts::MtuSize)));

nowMs += Utils::Crypto::GetRandomUInt(0u, 1000u);

Expand Down

0 comments on commit c0bf307

Please sign in to comment.