Merge pull request #1230 from simonduq/fix-wismote-random-init

Fix Wismote randon_init for link-layer addresses shorter than 8 bytes
This commit is contained in:
Simon Duquennoy 2015-09-02 17:44:57 +02:00
commit 10395fffde

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();
{