summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));