summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-12-02 17:23:43 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2017-02-24 15:18:21 +0100
commitf478d7fb15de2d76775f5612c66a70e190972fd9 (patch)
tree03cd72a91d654ff776e3b28c5fd2e20b4850a0da
parentbdb5dcd8708ba2752ae9f7d78eb01b1a63d4adc6 (diff)
libbsc: use 32bit random instead of 24 bit randomness
I expected the last byte must be zero which is'nt required Change-Id: I7be14e82b9f1fc0da8e27e20e46c1710a0a9c7db
-rw-r--r--openbsc/src/libbsc/abis_rsl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index 31ecc65..783fa16 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -1073,10 +1073,7 @@ int rsl_imm_assign_cmd(struct gsm_bts *bts, uint8_t len, uint8_t *val)
msg->dst = bts->c0->rsl_link;
msgb_put_u8(msg, 0xf1);
- msgb_put_u8(msg, random() & 0xff);
- msgb_put_u8(msg, random() & 0xff);
- msgb_put_u8(msg, random() & 0xff);
- msgb_put_u8(msg, 0x0);
+ msgb_put_u32(msg, random());
return abis_rsl_sendmsg(msg);
}