Commit f92bafb8 authored by aligungr's avatar aligungr

RNG improvements and fix of initial ID conflict

parent 28c8124e
......@@ -56,11 +56,8 @@ void UeRrcTask::startConnectionEstablishment(OctetString &&nasPdu)
return;
}
if (m_initialId.present == ASN_RRC_InitialUE_Identity_PR_NOTHING)
{
m_initialId.present = ASN_RRC_InitialUE_Identity_PR_randomValue;
asn::SetBitStringLong<39>(Random::Mixed(m_base->config->getNodeName()).nextL(), m_initialId.choice.randomValue);
}
m_initialId.present = ASN_RRC_InitialUE_Identity_PR_randomValue;
asn::SetBitStringLong<39>(Random::Mixed(m_base->config->getNodeName()).nextL(), m_initialId.choice.randomValue);
m_initialNasPdu = std::move(nasPdu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment