[LoRaWAN] Fix pRNG seed

pull/1573/head
StevenCellist 2025-08-18 13:34:56 +02:00
rodzic 235de1d455
commit ce8c84197d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -329,7 +329,7 @@ void LoRaWANNode::resetSession() {
this->lwClass = RADIOLIB_LORAWAN_CLASS_A;
// set a seed for the pseudo-rng using a truly random value from radio noise
srand(this->phyLayer->random(0xFFFFFFFF));
srand(this->phyLayer->random(INT32_MAX));
// reset all channels
memset(this->dynamicChannels, 0, sizeof(this->dynamicChannels));