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

zephyrCommon: Implement random and randomSeed #102

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

Ayush1325
Copy link
Member

  • Using zephyr random api
  • Using a stub for randomSeed since it is not present in Zephyr

cores/arduino/zephyrCommon.cpp Outdated Show resolved Hide resolved
cores/arduino/zephyrCommon.cpp Outdated Show resolved Hide resolved
cores/arduino/zephyrCommon.cpp Outdated Show resolved Hide resolved
- Using zephyr stdlib `rand` and `srand`

Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
@Ayush1325
Copy link
Member Author

Ayush1325 commented Jun 12, 2024

I have switched to using zephyr stdlib rand and srand. It's present even in the minimal libc, so I do not think there is any drawback to using it.

@DhruvaG2000 DhruvaG2000 merged commit 4c34ceb into zephyrproject-rtos:next Jun 14, 2024
2 checks passed
@Ayush1325 Ayush1325 deleted the random branch June 14, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants