From 52d42bca3024c91cdd0d139c7e3e8f9e7428792e Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 17 Oct 2007 16:26:42 +0200 Subject: [PATCH] fix valgrind warning: initialize RngStream correctly --- 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 6878843cf..c498302c6 100644 --- a/src/devices/wifi/random-stream.cc +++ b/src/devices/wifi/random-stream.cc @@ -28,7 +28,9 @@ RandomStream::~RandomStream () RealRandomStream::RealRandomStream () -{} +{ + m_stream.InitializeStream(); +} uint32_t RealRandomStream::GetNext (uint32_t min, uint32_t max) {