projects
/
platform
/
core
/
uifw
/
inputdelegator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed defect detected by static analysis tool
[platform/core/uifw/inputdelegator.git]
/
src
/
MicEffector.cpp
diff --git
a/src/MicEffector.cpp
b/src/MicEffector.cpp
index
f2602d1
..
9010026
100755
(executable)
--- 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);
}
}