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

Comparing ray/src/meta/random.h (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 1.2 by schorsch, Mon Jul 14 22:24:00 2003 UTC

# Line 4 | Line 4
4   *
5   *     10/1/85
6   */
7 + #ifndef _RAD_META_RANDOM_H_
8 + #define _RAD_META_RANDOM_H_
9  
10 < extern long  random();
10 > #include <stdlib.h>
11  
12 + #ifdef __cplusplus
13 + extern "C" {
14 + #endif
15 +
16   #define  frandom()      (random()/2147483648.0)
17 +
18 + #ifdef __cplusplus
19 + }
20 + #endif
21 + #endif /* _RAD_META_RANDOM_H_ */
22 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines