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

Bring back old semantics to random and randomSeed, add secureRandom #2142

Merged
merged 1 commit into from Jun 13, 2016

Conversation

@igrr
Copy link
Member

commented Jun 13, 2016

As discussed in #1710.

  • Initially from startup, random(howbig) and random(howsmall, howbig) functions will return values from HW PRNG.
  • If randomSeed is called, these functions will switch back to software PRNG to maintain compatibility with standard Arduino behaviour.
  • Two new functions are added, secureRandom(howbig) and secureRandom(howsmall, howbig) — these always return values from HW PRNG and don't depend on randomSeed calls.
@igrr igrr merged commit a14ac2c into master Jun 13, 2016
4 checks passed
4 checks passed
codecov/patch 100% of diff hit (target 27.72%)
Details
codecov/project 43.84% (+16.11%) compared to 4341297
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@igrr igrr deleted the random_fix branch Jun 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.