From 76cd03d710da8dc07fc05d873c60b6512a8241bc Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Thu, 20 Oct 2016 15:08:54 +0900 Subject: [PATCH] Fixed defect detected by static analysis tool Change-Id: I5c3acc19e4478b2c3421b68b203b0a5e08f1bb16 --- src/MicEffector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MicEffector.cpp b/src/MicEffector.cpp index f2602d1..9010026 100755 --- a/src/MicEffector.cpp +++ b/src/MicEffector.cpp @@ -408,7 +408,8 @@ void MicEffector::VolumeCheck(bool fake) volumes = ieffect.GetVolume(); } else { for(unsigned int i = 0; i < spectrum_count; i++) { - volumes.push_back(rand_r((unsigned int*)time(NULL)) % 2); + unsigned int seed = time(NULL); + volumes.push_back(rand_r(&seed) % 2); } } -- 2.7.4