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

random/arandom conflicting changes #4

Closed
rstaph opened this issue Dec 5, 2014 · 4 comments
Closed

random/arandom conflicting changes #4

rstaph opened this issue Dec 5, 2014 · 4 comments

Comments

@rstaph
Copy link

rstaph commented Dec 5, 2014

When prahaladm recoded for the arandom() change no one undid the changes in the rest of the file. I know I was having issues getting this to run with the function called random. Would the solution be to fall back to rand()?

@pkourany
Copy link
Owner

pkourany commented Dec 5, 2014

@rstaph, I am not sure what you mean. The lastest firmware repo, and I believe also on the compile server, spark_wiring_random.cpp/.h clearly define the random() and randomSeed() functions. I am not sure why you are having problems with random().

@rstaph
Copy link
Author

rstaph commented Dec 8, 2014

Turned out to be a simple thing. In file ssd1306_128x64_i2c.ino on lines 168, 170, 195, 197 arandom() (instead of random()) is still being used leading to function not defined errors during compile.

@pkourany
Copy link
Owner

pkourany commented Dec 8, 2014

@rstaph, I don't know how I missed those! These should all be replaced for "random". I will clean this up asap. Thanks!

@pkourany
Copy link
Owner

pkourany commented Dec 8, 2014

Ok... fixed!

@pkourany pkourany closed this as completed Dec 8, 2014
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

No branches or pull requests

2 participants