[PHY] Renamed TRNG method

This commit is contained in:
jgromes 2021-07-18 10:17:19 +02:00
parent fdfd12fb55
commit d645f5ab73
2 changed files with 2 additions and 2 deletions

View file

@ -154,7 +154,7 @@ int32_t PhysicalLayer::random(int32_t max) {
// get random bytes from the radio // get random bytes from the radio
uint8_t randBuff[4]; uint8_t randBuff[4];
for(uint8_t i = 0; i < 4; i++) { for(uint8_t i = 0; i < 4; i++) {
randBuff[i] = random(); randBuff[i] = randomByte();
} }
// create 32-bit TRNG number // create 32-bit TRNG number

View file

@ -250,7 +250,7 @@ class PhysicalLayer {
\returns TRNG byte. \returns TRNG byte.
*/ */
virtual uint8_t random() = 0; virtual uint8_t randomByte() = 0;
/*! /*!
\brief Configure module parameters for direct modes. Must be called prior to "ham" modes like RTTY or AX.25. Only available in FSK mode. \brief Configure module parameters for direct modes. Must be called prior to "ham" modes like RTTY or AX.25. Only available in FSK mode.