mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
[commissioner-dataset] initialize mSessionId to a random value (#2793)
This commit is contained in:
@@ -61,7 +61,7 @@ Leader::Leader(Instance &aInstance)
|
||||
, mKeepAlive(OT_URI_PATH_LEADER_KEEP_ALIVE, Leader::HandleKeepAlive, this)
|
||||
, mTimer(aInstance, HandleTimer, this)
|
||||
, mDelayTimerMinimal(DelayTimerTlv::kDelayTimerMinimal)
|
||||
, mSessionId(0xffff)
|
||||
, mSessionId(Random::GetUint16())
|
||||
{
|
||||
GetNetif().GetCoap().AddResource(mPetition);
|
||||
GetNetif().GetCoap().AddResource(mKeepAlive);
|
||||
|
||||
Reference in New Issue
Block a user