Skip to content
This repository was archived by the owner on May 18, 2022. It is now read-only.

Obtaining random numbers #2

Open
jonas-schievink opened this issue Feb 9, 2019 · 1 comment
Open

Obtaining random numbers #2

jonas-schievink opened this issue Feb 9, 2019 · 1 comment
Labels
area: utils Code Area: Utilities and scaffolding used throughout the project

Comments

@jonas-schievink
Copy link
Owner

We need cryptographically secure random numbers for key generation, and also for stuff like inducing random jitter on the advertising interval. We have to use some trait for that and let the user plug in an implementation. There's two choices:

  • embedded_hal::blocking::rng::Read
    • "unproven"
    • Doesn't say anything about cryptographic security
  • rand_core::CryptoRng
    • Looks like the better choice for us - rand_core is also no_std
  • ...any other alternatives?
@fmckeogh
Copy link
Collaborator

fmckeogh commented Mar 3, 2019

rand::RngCore is now implemented for nrf528xx_hal::rng::Rng, and an issue has been opened to make it the standard for embedded-hal (here).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: utils Code Area: Utilities and scaffolding used throughout the project
Projects
None yet
Development

No branches or pull requests

2 participants