From 20ddca38d68092689fcd70365239b490581805cb Mon Sep 17 00:00:00 2001 From: Raj Bhattacharjea Date: Thu, 29 Jan 2009 12:25:25 -0500 Subject: [PATCH] Explicit cast and correction in wifi/RandomStream --- src/devices/wifi/random-stream.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))); }