From fd9448e5f1efb3affd09549c85e36d1afb847c85 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 18 Jul 2021 10:17:41 +0200 Subject: [PATCH] [nRF24] Renamed TRNG method --- src/modules/nRF24/nRF24.cpp | 2 +- src/modules/nRF24/nRF24.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/nRF24/nRF24.cpp b/src/modules/nRF24/nRF24.cpp index 9a6a6e9e..90f8b3e0 100644 --- a/src/modules/nRF24/nRF24.cpp +++ b/src/modules/nRF24/nRF24.cpp @@ -505,7 +505,7 @@ int16_t nRF24::setEncoding(uint8_t encoding) { return(ERR_NONE); } -uint8_t nRF24::random() { +uint8_t nRF24::randomByte() { // nRF24 is unable to measure RSSI, hence no TRNG // this method is implemented only for PhysicalLayer compatibility return(0); diff --git a/src/modules/nRF24/nRF24.h b/src/modules/nRF24/nRF24.h index 08c867fa..d76a658d 100644 --- a/src/modules/nRF24/nRF24.h +++ b/src/modules/nRF24/nRF24.h @@ -469,7 +469,7 @@ class nRF24: public PhysicalLayer { \returns Always returns 0. */ - uint8_t random(); + uint8_t randomByte(); /*! \brief Dummy method, to ensure PhysicalLayer compatibility.