summaryrefslogtreecommitdiffstats
path: root/ggsn_tests/GGSN_Tests.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-08-13 18:57:56 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-13 18:57:56 +0200
commit11dbc7b6cc68532f9dbcfb26b2d529632130705a (patch)
tree4d928f8766859268d41ae760680a2fd330f1972f /ggsn_tests/GGSN_Tests.ttcn
parent41575e9bc268fc8c8efb196c33352c12df5e108f (diff)
GGSN_Test: Use randomized sequence numbers in every test
Diffstat (limited to 'ggsn_tests/GGSN_Tests.ttcn')
-rw-r--r--ggsn_tests/GGSN_Tests.ttcn4
1 files changed, 2 insertions, 2 deletions
diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn
index 5214c1e..eaad436 100644
--- a/ggsn_tests/GGSN_Tests.ttcn
+++ b/ggsn_tests/GGSN_Tests.ttcn
@@ -74,8 +74,8 @@ module GGSN_Tests {
g_peer_u.connId:= res.connId;
g_restart_ctr := f_rnd_octstring(1);
- g_c_seq_nr := (oct2int(g_restart_ctr) * 1024) mod 65536;
- g_d_seq_nr := (oct2int(g_restart_ctr) * 2000) mod 65536;
+ g_c_seq_nr := f_rnd_int(65535);
+ g_d_seq_nr := f_rnd_int(65535);
}
/* generalized GTP-C receive template */