Skip to content
Commit 19fc1ee7 authored by Filip Kokosinski's avatar Filip Kokosinski Committed by Anas Nashif
Browse files

subsys/random: change parameters for timer-based PRNG



PR #36996 disabled running mem_protect/stack_random test on qemu_riscv32
platform because of this test consistently failing on said platform.
This test starts new threads in equal time intervals, and because of
that we get repeating values after performing the modulus operation when
calculating the stack pointer address.

This can be solved by changing the value of the _RAND32_INC constant
that is used to increase the value returned by the timer-based PRNG.

This commit decreases the value of the mentioned constant from
1000000013U to 1000000003U.

Fixes #37006.

Signed-off-by: default avatarFilip Kokosinski <fkokosinski@antmicro.com>
parent ef87d485
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment