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
Fri Dec 10 23:11:43 UTC 2021


fixeria has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/09/26509/1

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-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211210/254f4465/attachment.htm>


More information about the gerrit-log mailing list