Change in osmo-ttcn3-hacks[master]: library/Osmocom_Types: use f_rnd_bitstring() in f_rnd_ra11_ps()

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.org
Sat Dec 11 11:55:27 UTC 2021


fixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26509 )

Change subject: library/Osmocom_Types: use f_rnd_bitstring() in f_rnd_ra11_ps()
......................................................................

library/Osmocom_Types: use f_rnd_bitstring() in f_rnd_ra11_ps()

Change-Id: I122d386b0c8ce320687016b6cab883b8a36bdffc
---
M library/Osmocom_Types.ttcn
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/library/Osmocom_Types.ttcn b/library/Osmocom_Types.ttcn
index 967beb4..472b389 100644
--- a/library/Osmocom_Types.ttcn
+++ b/library/Osmocom_Types.ttcn
@@ -249,8 +249,7 @@
 
 /* generate a random 11-bit RA (packet-switched only) */
 function f_rnd_ra11_ps() return BIT11 {
-	var integer ra11 := f_rnd_int(bit2int('11111111111'B) + 1);
-	return int2bit(ra11, 11);
+	return f_rnd_bitstring(11);
 }
 
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26509
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: I122d386b0c8ce320687016b6cab883b8a36bdffc
Gerrit-Change-Number: 26509
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211211/9768650f/attachment.htm>


More information about the gerrit-log mailing list