Fix Wismote randon_init for link-layer addresses shorter than 8 bytes

This commit is contained in:
Simon Duquennoy 2015-09-01 19:36:27 +02:00
parent c792993664
commit 265b65c67c

View File

@ -257,7 +257,7 @@ main(int argc, char **argv)
init_platform();
set_rime_addr();
random_init(linkaddr_node_addr.u8[6] + linkaddr_node_addr.u8[7]);
random_init(linkaddr_node_addr.u8[LINKADDR_SIZE-2] + linkaddr_node_addr.u8[LINKADDR_SIZE-1]);
cc2520_init();
{