diff options
author | Gilbok Lee <gilbok.lee@samsung.com> | 2016-03-09 17:39:14 +0900 |
---|---|---|
committer | Gilbok Lee <gilbok.lee@samsung.com> | 2016-03-10 11:54:44 +0900 |
commit | d330c3c0ac72dc7d94097942ccef30702f540374 (patch) | |
tree | eaef55f688e21db6beb9a12a50542ee80d548b2a | |
parent | 2f27fa6132fbe811fa5a5ea92fa06324912c15d0 (diff) | |
download | libmm-radio-accepted/tizen_tv.tar.gz libmm-radio-accepted/tizen_tv.tar.bz2 libmm-radio-accepted/tizen_tv.zip |
Fixed Svace issue(WGID:31189)submit/tizen/20160310.063535accepted/tizen/wearable/20160311.054938accepted/tizen/tv/20160311.054916accepted/tizen/mobile/20160311.054859accepted/tizen/ivi/20160311.055000accepted/tizen/common/20160311.201254accepted/tizen_tv
Change-Id: I31c15d9eee50fc411b8728b43007ffe16f402eb0
Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
-rw-r--r-- | src/mm_radio_priv_emulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm_radio_priv_emulator.c b/src/mm_radio_priv_emulator.c index c5239c2..4b685f4 100644 --- a/src/mm_radio_priv_emulator.c +++ b/src/mm_radio_priv_emulator.c @@ -875,8 +875,8 @@ int _mm_radio_get_signal_strength(mm_radio_t * radio, int *value) return MM_ERROR_NONE; } - srand((unsigned)time(NULL)); - *value = 0 - ((rand() % 20 + 1) + 80); + unsigned int seed = (unsigned)time(NULL); + *value = 0 - ((rand_r(&seed) % 20 + 1) + 80); MMRADIO_LOG_FLEAVE(); return MM_ERROR_NONE; } |