1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-27 21:23:48 +00:00

Clean-up random helper functions (#3022)

This commit is contained in:
Oxan van Leeuwen
2022-01-10 01:50:26 +01:00
committed by GitHub
parent e55bd1e559
commit 6383eca54a
4 changed files with 40 additions and 61 deletions

View File

@@ -721,7 +721,7 @@ APIError APINoiseFrameHelper::shutdown(int how) {
}
extern "C" {
// declare how noise generates random bytes (here with a good HWRNG based on the RF system)
void noise_rand_bytes(void *output, size_t len) { esphome::fill_random(reinterpret_cast<uint8_t *>(output), len); }
void noise_rand_bytes(void *output, size_t len) { esphome::random_bytes(reinterpret_cast<uint8_t *>(output), len); }
}
#endif // USE_API_NOISE