/* Generates a 32 bits random value based on the RSSI readings.  */
uint32_t RadioRandom(void)
/* Generates a 32 bits random value based on the RSSI readings.  */
uint32_t RadioRandom(void)
{
    uint32_t rnd = 0;
    RadioSetModem( MODEM_LORA );
    SX126xSetDioIrqParams( IRQ_RADIO_NONE, IRQ_RADIO_NONE, IRQ_RADIO_NONE, IRQ_RADIO_NONE );
    rnd = SX126xGetRandom( );
    return rnd;
}