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:
commit
10395fffde
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue