ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/random.h
(Generate patch)

Comparing ray/src/common/random.h (file contents):
Revision 2.21 by greg, Wed May 27 08:42:06 2015 UTC vs.
Revision 2.22 by greg, Thu Jul 16 05:08:57 2015 UTC

# Line 4 | Line 4
4   */
5   #ifndef _RAD_RANDOM_H_
6   #define _RAD_RANDOM_H_
7 +
8 + #include <stdlib.h>
9 +
10   #ifdef __cplusplus
11   extern "C" {
12   #endif
13  
14   #ifdef  _WIN32
12
13 #include <stdlib.h>
15  
16   #if (RAND_MAX <= 65536)
17   #define random()        ((long)rand()<<16^(long)rand()<<6^(long)rand()>>4)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines