From ce8c84197d1e6fff0b3e2d08a9f8ba5e8ab9d43e Mon Sep 17 00:00:00 2001 From: StevenCellist Date: Mon, 18 Aug 2025 13:34:56 +0200 Subject: [PATCH] [LoRaWAN] Fix pRNG seed --- src/protocols/LoRaWAN/LoRaWAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/LoRaWAN/LoRaWAN.cpp b/src/protocols/LoRaWAN/LoRaWAN.cpp index 77d414bf..be459b74 100644 --- a/src/protocols/LoRaWAN/LoRaWAN.cpp +++ b/src/protocols/LoRaWAN/LoRaWAN.cpp @@ -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));