AP_HAL: add true random number generator

This commit is contained in:
bugobliterator 2021-10-06 11:06:39 +05:30 committed by Andrew Tridgell
parent 0c94e013ca
commit e4f4b3ce1f

View File

@ -185,6 +185,9 @@ public:
// generate Random values
virtual bool get_random_vals(uint8_t* data, size_t size) { return false; }
// generate Random values, will block until enough entropy is available
virtual bool get_true_random_vals(uint8_t* data, size_t size, uint32_t timeout_us) { return false; }
protected:
// we start soft_armed false, so that actuators don't send any
// values until the vehicle code has fully started