From f0afbb69ab71428b33bd59f6b05303e2dd169706 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Sun, 6 Jun 2010 21:48:15 +0000 Subject: [PATCH] Fixed typo --- core/net/rpl/rpl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/rpl/rpl.h b/core/net/rpl/rpl.h index 5d2de0fa3..cb175f65f 100644 --- a/core/net/rpl/rpl.h +++ b/core/net/rpl/rpl.h @@ -30,7 +30,7 @@ * * Author: Joakim Eriksson, Nicolas Tsiftes * - * $Id: rpl.h,v 1.13 2010/06/06 21:42:50 nvt-se Exp $ + * $Id: rpl.h,v 1.14 2010/06/06 21:48:15 nvt-se Exp $ */ #ifndef RPL_H @@ -90,7 +90,7 @@ /*---------------------------------------------------------------------------*/ /* Default values for RPL constants and variables. */ -#define DEFAULT_DAO_LATENCY (CLOCK_SECOND * (1 + (random_rand() + 0xf))) +#define DEFAULT_DAO_LATENCY (CLOCK_SECOND * (1 + (random_rand() & 0xf))) /* Special value indicating immediate removal. */ #define ZERO_LIFETIME 0