-
Notifications
You must be signed in to change notification settings - Fork 443
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
Simpler rand #573
Simpler rand #573
Conversation
Having just implemented against the earlier Rand interface, I like this better. My device RNG (and I imagine others) requires some setup before it can be used, so this ownership model removes the runtime checks needed in the previous interface (making sure that the RNG was configured before first-use). 👍 |
d7a99db
to
453183f
Compare
The sequence number for IEEE 802.15.4 needs to be random and not equal to zero when the interface is build. I guess we can now set it when building the interface, but then we should remove the Made a PR for it #575 |
Set the sequence number to a random value when building the interface.
bors r+ |
Requires #571
Revisits #547, because it turns out the
rand_custom_impl!
macro stuff was less nice than I thought. It's now a simple PRNG owned by Interface. The builder allows setting the random seed.