zephyr/subsys/random
Filip Kokosinski 19fc1ee77c 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: Filip Kokosinski <fkokosinski@antmicro.com>
2021-08-30 09:32:36 -04:00
..
CMakeLists.txt
Kconfig
rand32_ctr_drbg.c
rand32_entropy_device.c
rand32_handlers.c
rand32_timer.c subsys/random: change parameters for timer-based PRNG 2021-08-30 09:32:36 -04:00
rand32_xoshiro128.c