kopia lustrzana https://github.com/jgromes/RadioLib
[LoRaWAN] Fix pRNG seed
rodzic
235de1d455
commit
ce8c84197d
|
@ -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));
|
||||
|
|
Ładowanie…
Reference in New Issue