Remove using /dev/random device node 07/202007/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 21 Mar 2019 23:46:43 +0000 (08:46 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 21 Mar 2019 23:46:43 +0000 (08:46 +0900)
commit6b1900b2f880e4863b66369770c025df6f2d887e
tree717b614ea7f8334898bab97005db78ae7e68d629
parent765433dbf701c38598fa19cba518deee066618b7
Remove using /dev/random device node

Sometimes, reading the data from "/dev/random" is very slow.
It causes that the launch request is delayed.
This patch uses rand_r() function instead of "/dev/random".

- Strace Result:
07:02:42.263885 open("/dev/random", O_RDONLY) = 52 <0.000091>
07:02:42.264160 read(52, "\335\345\32\223", 4) = 4 <15.115966>
07:02:57.380340 close(52)         = 0 <0.000092>

Change-Id: If000be930ac868fde31683a626cc99a62c3089a7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launch_with_result.c