Fixed defect detected by static analysis tool
[platform/core/uifw/inputdelegator.git] / src / MicEffector.cpp
index f2602d1..9010026 100755 (executable)
@@ -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);
                }
        }