diff --git a/subsys/testsuite/ztest/src/ztress.c b/subsys/testsuite/ztest/src/ztress.c index 1833e9627ad..9ab23a5f9b0 100644 --- a/subsys/testsuite/ztest/src/ztress.c +++ b/subsys/testsuite/ztest/src/ztress.c @@ -467,6 +467,12 @@ static int ztress_cpu_clock_to_sys_clock_check(const struct device *unused) */ cpu_sys_clock_ok = t <= 12; + /* Read first random number. There are some generators which do not support + * reading first random number from an interrupt context (initialization + * is performed at the first read). + */ + (void)sys_rand32_get(); + return 0; }