Skip to content
Commit fcc56e31 authored by Leandro Pereira's avatar Leandro Pereira Committed by Andrew Boie
Browse files

subsys: random: xoroshiro128: Use SYS_INIT hook to initialize properly



Not only removes a branch during normal operation, but also ensures
that, by initializing at the PRE_KERNEL_2 stage, and granting
privileges to all threads to the semaphore, this code will work in
early boot situations and in user mode.

This assumes that entropy drivers will all initialize during
PRE_KERNEL_1 stage.  All in-tree drivers do that.

Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent 30e558f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment