This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21042 ) Change subject: library/L3_Common: use f_rnd_octstring() from Osmocom_Types ...................................................................... library/L3_Common: use f_rnd_octstring() from Osmocom_Types Change-Id: Iad46c3ab25244389a2a536065653c7ed231d1234 --- M library/L3_Common.ttcn 1 file changed, 8 insertions(+), 17 deletions(-) Approvals: fixeria: Looks good to me, approved pespin: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/library/L3_Common.ttcn b/library/L3_Common.ttcn index 0a80593..981c6ba 100644 --- a/library/L3_Common.ttcn +++ b/library/L3_Common.ttcn @@ -29,30 +29,21 @@ OCT14 auts } -private function f_rnd_oct(integer len) return octetstring { - var integer i; - var octetstring res; - for (i := 0; i < len; i := i + 1) { - res[i] := int2oct(float2int(rnd()*256.0), 1); - } - return res; -} - function f_gen_auth_vec_2g() return AuthVector { var AuthVector vec; - vec.rand := f_rnd_oct(16); - vec.sres := f_rnd_oct(4); - vec.kc := f_rnd_oct(8); + vec.rand := f_rnd_octstring(16); + vec.sres := f_rnd_octstring(4); + vec.kc := f_rnd_octstring(8); return vec; } function f_gen_auth_vec_3g() return AuthVector { var AuthVector vec := f_gen_auth_vec_2g(); - vec.ik := f_rnd_oct(16); - vec.ck := f_rnd_oct(16); - vec.autn := f_rnd_oct(16); - vec.res := f_rnd_oct(8); - vec.auts := f_rnd_oct(14); + vec.ik := f_rnd_octstring(16); + vec.ck := f_rnd_octstring(16); + vec.autn := f_rnd_octstring(16); + vec.res := f_rnd_octstring(8); + vec.auts := f_rnd_octstring(14); return vec; } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21042 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Iad46c3ab25244389a2a536065653c7ed231d1234 Gerrit-Change-Number: 21042 Gerrit-PatchSet: 4 Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201110/d61f7cb0/attachment.htm>