summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilbok Lee <gilbok.lee@samsung.com>2016-03-09 17:39:14 +0900
committerGilbok Lee <gilbok.lee@samsung.com>2016-03-10 11:54:44 +0900
commitd330c3c0ac72dc7d94097942ccef30702f540374 (patch)
treeeaef55f688e21db6beb9a12a50542ee80d548b2a
parent2f27fa6132fbe811fa5a5ea92fa06324912c15d0 (diff)
downloadlibmm-radio-accepted/tizen_tv.tar.gz
libmm-radio-accepted/tizen_tv.tar.bz2
libmm-radio-accepted/tizen_tv.zip
Change-Id: I31c15d9eee50fc411b8728b43007ffe16f402eb0 Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
-rw-r--r--src/mm_radio_priv_emulator.c4
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;
}