Seed CoAP message id, fixes #847 (#1401)

This commit is contained in:
Marcel Stör 2016-07-17 15:17:57 +02:00 committed by GitHub
parent 0bbce6f845
commit cc2fee5ec0
1 changed files with 4 additions and 4 deletions

View File

@ -546,7 +546,7 @@ next:
void coap_setup(void)
{
message_id = (unsigned short)rand(); // calculate only once
message_id = (unsigned short)os_random(); // calculate only once
}
inline int