summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumit Aggarwal <aggarwal.s@samsung.com>2016-06-21 17:57:27 +0530
committerSumit Aggarwal <aggarwal.s@samsung.com>2016-07-21 20:24:03 +0530
commite072cd561639e3b27ed9a586d9f60d377b78e960 (patch)
tree9029de119befaef0c92b44bac1c81099920e1f6d
parentb3366ad07418e162a487bb8a218d8ebe93a9890f (diff)
downloadconnman-e072cd561639e3b27ed9a586d9f60d377b78e960.tar.gz
connman-e072cd561639e3b27ed9a586d9f60d377b78e960.tar.bz2
connman-e072cd561639e3b27ed9a586d9f60d377b78e960.zip
Fix compiler warning issue.
Change-Id: I594a66ddeaca4152cea9b973cfec42b32f2807f2 Signed-off-by: Sumit Aggarwal <aggarwal.s@samsung.com>
-rwxr-xr-xsrc/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index da32cc55..1f56dc32 100755
--- a/src/util.c
+++ b/src/util.c
@@ -48,7 +48,11 @@ int __connman_util_get_random(uint64_t *val)
if (read(f, val, sizeof(uint64_t)) < 0) {
r = -errno;
connman_warn_once("Could not read from "URANDOM);
+#if defined TIZEN_EXT
+ *val = (uint64_t) random();
+#else
*val = random();
+#endif
}
return r;