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

Cloud random seed not working #1312

Closed
kennethlimcp opened this issue Apr 26, 2017 · 0 comments · Fixed by #1376

Comments

@kennethlimcp
Copy link
Contributor

commented Apr 26, 2017

Bug Report

Expected Behavior

It should return a different value each time the function is called.

Observed Behavior

Same value is returned from the function.

Some kind of regression with 0.6.1

Steps to Reproduce

Test App

Following code needs to be added to the user firmware:

void random_seed_from_cloud(unsigned seed) {
  srand(seed);
}

References

https://community.particle.io/t/random-seed-from-cloud-not-working/17343/14

@avtolstoy avtolstoy added the track label Aug 22, 2017

@avtolstoy avtolstoy referenced this issue Aug 25, 2017
3 of 6 tasks complete

@m-mcgowan m-mcgowan added this to the 0.9.0 milestone Oct 22, 2017

@technobly technobly modified the milestones: 0.9.0, 0.8.0 Sep 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.