summaryrefslogtreecommitdiffstats
path: root/tests/smscb
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-12-30 00:43:39 +0100
committerHarald Welte <laforge@gnumonks.org>2014-12-30 00:43:39 +0100
commit65f676dac581d5ff6240aa76104d38df2cbf93ab (patch)
tree0d257b53948511e33f3d133ed224cfac48cdcfba /tests/smscb
parent63b156a9e04546dae0970e658cfd2d4d1230ced4 (diff)
test
Diffstat (limited to 'tests/smscb')
-rw-r--r--tests/smscb/gsm0341_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/smscb/gsm0341_test.c b/tests/smscb/gsm0341_test.c
index 5b728899..cbd3721b 100644
--- a/tests/smscb/gsm0341_test.c
+++ b/tests/smscb/gsm0341_test.c
@@ -37,8 +37,11 @@ struct gsm341_ms_message *gen_msg_from_text(uint16_t msg_id, const char *text)
uint8_t payload[text_len];
int payload_octets;
+ srand(time(NULL));
+
gsm_7bit_encode_n(payload, sizeof(payload), text, &payload_octets);
- cbmsg = gsm0341_build_msg(NULL, 0, 23, 0, msg_id, 0xf0, 1, 1, payload, payload_octets);
+ //cbmsg = gsm0341_build_msg(NULL, 0, rand(), 0, msg_id, 0x0f, 1, 1, payload, payload_octets);
+ cbmsg = gsm0341_build_msg(NULL, 0, rand(), 0, msg_id, 0x00, 1, 1, payload, payload_octets);
printf("%s\n", osmo_hexdump_nospc((uint8_t *)cbmsg, sizeof(*cbmsg)+payload_octets));