commit | 77617b0d9815083f03bdf6e70906e9aa94a27a6d | [log] [tgz] |
---|---|---|
author | Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no> | Wed Aug 31 08:52:07 2022 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu Sep 08 05:43:17 2022 -0400 |
tree | 057b490c3973f7069fe3d2174f705b319c5acb9c | |
parent | 3e706376e627ba84c9f9bd46f87bb19709c87925 [diff] |
testsuite: ztress: First sys_rand_get32 from thread Added a workaround to call random generator once during the initialization. It is done to handle XOSHIRO generator limitation which performs initialization in the first sys_rand32_get call. And for some entropy generators it cannot be done from an interrupt context and it happens if k_timer context is used which expires first. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>