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

Explain RNG differences, add FURI_HAL_RANDOM_MAX #3565

Merged
merged 3 commits into from
Apr 7, 2024

Conversation

Willy-JL
Copy link
Contributor

@Willy-JL Willy-JL commented Apr 2, 2024

What's new

  • Explain differences between furi_hal_random_get() and rand()
  • Add FURI_HAL_RANDOM_MAX define
  • Prevents confusing results when using furi_hal_random_get() with RAND_MAX

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

@skotopes skotopes merged commit 16b34c6 into flipperdevices:dev Apr 7, 2024
11 checks passed
@Willy-JL Willy-JL deleted the explain-rng-max branch April 7, 2024 14:15
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.

None yet

2 participants