From c49fdee65364da4774cc68960e3dded186b2cdc7 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sun, 10 Feb 2008 12:30:57 +0000 Subject: [PATCH] Avoided compiler warning. --- core/lib/random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/random.c b/core/lib/random.c index 489b970d6..814e7ba1b 100644 --- a/core/lib/random.c +++ b/core/lib/random.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: random.c,v 1.1 2006/06/17 22:41:18 adamdunkels Exp $ + * @(#)$Id: random.c,v 1.2 2008/02/10 12:30:57 oliverschmidt Exp $ */ /* @@ -61,7 +61,7 @@ random_rand(void) rv = tv = 0; - tv = time + clock_time(); + tv = (unsigned short)(time + clock_time()); rv = tv ^ key; key = ~tv + 4711;