cn-uofbasel / ccn-lite

CCN-lite, a lightweight implementation of the CCNx protocol and its variations
ISC License
74 stars 63 forks source link

ccnl-pkt: use random_uint32() instead of rand() for RIOT #358

Closed cgundogan closed 5 years ago

cgundogan commented 5 years ago

Contribution description

In RIOT, the correct way to generate a 4 byte random number is with using random_uint32().

PeterKietzmann commented 5 years ago

semaphoreci doesn't like that formatting:

ccnl-pkt-builder.c:203:5: error: missing braces around initializer [-Werror=missing-braces]
     ccnl_interest_opts_u default_opts = { 0 };