-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel: random: ifdef z_early_boot_rand_get #22851
Conversation
Fixes #20136 |
All checks are passing now. checkpatch (informational only, not a failure)
Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, making it #ifdef CONFIG_ENTROPY_GENERATOR
would be better as that is really what determines the availability of z_early_boot_rand_get
.
This function had a to sys_rand_get() even without random source. As Zephyr is built with linkage garbage collection and this function is called only if either ENTROPY_HAS_DRIVER or TEST_RANDOM_GENERATOR is enabled and these options automatically enable a random source. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
@stephanosio Can you take a look again ? |
This function had a to sys_rand_get() even without random source. As Zephyr is
built with linkage garbage collection and this function is called only if
either STACK_CANARIES or STACK_POINTER_RANDOM is enabled and these options
automatically enable a random source.
Signed-off-by: Flavio Ceolin flavio.ceolin@intel.com