1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Fail hard if no random bytes available for encryption (#3067)

This commit is contained in:
Oxan van Leeuwen
2022-01-18 02:29:57 +01:00
committed by GitHub
parent db21731b14
commit 737188ae50
3 changed files with 11 additions and 6 deletions

View File

@@ -311,7 +311,7 @@ uint32_t random_uint32();
/// Return a random float between 0 and 1.
float random_float();
/// Generate \p len number of random bytes.
void random_bytes(uint8_t *data, size_t len);
bool random_bytes(uint8_t *data, size_t len);
///@}