Skip to content

Fixed parameters section in randomSeed.adoc #267

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

Merged
merged 3 commits into from
Dec 15, 2017

Conversation

robsoncouto
Copy link
Contributor

Noticed this while translating in reference-pt

@@ -30,7 +30,7 @@ Conversely, it can occasionally be useful to use pseudo-random sequences that re

[float]
=== Parameters
`long`, `int` - pass a number to generate the seed.
`seed` - number to initialize the pseudo-random sequence (long).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unsigned long:
https://github.com/arduino/ArduinoCore-avr/blob/58006613a7c858417881744419c5da54cc21a401/cores/arduino/Arduino.h#L252

void randomSeed(unsigned long);

*In SAM and SAMD boards cores, uint32_t

@robsoncouto
Copy link
Contributor Author

Thanks. I must have looked at random() arguments instead.
Updated

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