Skip to content
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

controller: use OS specific PRNG for RIOT builds #1272

Merged

Conversation

haukepetersen
Copy link
Member

Currently the controller is using jrand48() to generate pseudo
random numbers. For RIOT builds this commit switches to the RIOT
build-in PRNG API, as this has two benefits: i) it saves 500bytes
of flash and ii) jrand48() internally uses malloc, which has been
source to runtime failures in the past.

Currently the controller is using jrand48() to generate pseudo
random numbers. For RIOT builds this commit switches to the RIOT
build-in PRNG API, as this has two benefits: i) it saves 500bytes
of flash and ii) jrand48() internally uses malloc, which has been
source to runtime failures in the past.
@apache-mynewt-bot
Copy link

Style check summary

No suggestions at this time!

@haukepetersen
Copy link
Member Author

All green -> go

@haukepetersen haukepetersen merged commit 80b6f20 into apache:master Jun 9, 2022
@haukepetersen haukepetersen deleted the opt_controller_jrandforriot branch June 9, 2022 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants