Avoided compiler warning.
This commit is contained in:
parent
f4095c7289
commit
c49fdee653
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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;
|
rv = tv = 0;
|
||||||
|
|
||||||
tv = time + clock_time();
|
tv = (unsigned short)(time + clock_time());
|
||||||
rv = tv ^ key;
|
rv = tv ^ key;
|
||||||
|
|
||||||
key = ~tv + 4711;
|
key = ~tv + 4711;
|
||||||
|
|
Loading…
Reference in a new issue