diff --git a/src/devices/wifi/random-stream.cc b/src/devices/wifi/random-stream.cc index 1a4229d88..0b086442f 100644 --- a/src/devices/wifi/random-stream.cc +++ b/src/devices/wifi/random-stream.cc @@ -20,6 +20,8 @@ #include "random-stream.h" #include "ns3/assert.h" +#include + namespace ns3 { RandomStream::~RandomStream () @@ -32,7 +34,7 @@ RealRandomStream::RealRandomStream () uint32_t RealRandomStream::GetNext (uint32_t min, uint32_t max) { - return m_stream.GetValue (min, max); + return static_cast (round (m_stream.GetValue (min, max))); }