zephyr/subsys/random
Ramakrishna Pallala a895d21d63 subsys: random: Fix semaphore initial count of xoroshiro128
Semaphore state_sem initial count is set to 0 but k_sem_give()
is invoked first in sys_rand32_get() which will block the caller
forever.

Fix the issue by setting the initail count to count_limit.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
2017-11-15 15:47:10 -06:00
..
CMakeLists.txt Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
Kconfig subsys/random: Add Xoroshiro128+ PRNG 2017-11-01 08:26:29 -04:00
rand32_entropy_device.c subsys/random: Add _ASSERT() test on returned device_get_binding 2017-11-13 13:50:15 -08:00
rand32_timer.c subsys: Add random subsystem 2017-11-01 08:26:29 -04:00
rand32_timestamp.c subsys: Add random subsystem 2017-11-01 08:26:29 -04:00
rand32_xoroshiro128.c subsys: random: Fix semaphore initial count of xoroshiro128 2017-11-15 15:47:10 -06:00