-
Notifications
You must be signed in to change notification settings - Fork 29
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
Device should seed random generator #9
Comments
@pelikhan try https://github.com/lancaster-university/codal/tree/rng, random_value was not being set. |
(have no device to test it on, hence the separate branch) |
:-) just fixed it @jamesadevine push coming up... |
I'll delete my patch then? 😉 |
I'll let you decide which is best... |
- Update API to allow allow definition of per device RNG seed - Update to AnalogSensor to create a valid initial sample on creation.
Fixed on my tests... @pelikhan There's now a static default "0xC0DA1" to protect against a seed never being set, and I've also added a line here that shows how to seed it with a non deterministic value for CircuitPlayground... You might want to do this in PXT too: Can you please test and close if it works for you... |
…ild-py-fix-t-help build.py: Fix option description for the `-t/test_platform` option
Random currently returns always 0.
The text was updated successfully, but these errors were encountered: