Skip to content
Commit a895d21d authored by Ramakrishna Pallala's avatar Ramakrishna Pallala Committed by Kumar Gala
Browse files

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: default avatarRamakrishna Pallala <ramakrishna.pallala@intel.com>
parent 08ce2bb3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment