Moved the call to f_rnd from templates to functions according to TTCN-3...

Moved the call to f_rnd from templates to functions according to TTCN-3 standards for invoking such kind of functions.
Signed-off-by: Miguel Angel Reina Ortega's avatarMiguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org>
parent 753ad702
......@@ -1850,6 +1850,8 @@ module OneM2M_Functions {
var template ListOfURIs v_defaultListOfURIs := {"NotInitialized"};
var template AcpType v_defaultAcpIDs := {"NotInitialized"};
p_request.requestIdentifier := p_request.requestIdentifier & f_rnd(1, 1000000);
if(p_resourceType != int2) {
if(p_resourceType == int16) {
p_request.from_ := f_getOriginator(p_parentIndex, false);
......@@ -1973,6 +1975,8 @@ module OneM2M_Functions {
*/
function f_getUpdateRequestPrimitive(in ResourceType p_resourceType, integer p_resourceIndex, template RequestPrimitive p_request) runs on Tester return RequestPrimitive {
p_request.requestIdentifier := p_request.requestIdentifier & f_rnd(1, 1000000);
p_request.from_ := f_getOriginator(p_resourceIndex);
p_request.to_ := f_getResourceAddress(p_resourceIndex);
......
This diff is collapsed.
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