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 1.1 by greg, Thu Feb 2 10:34:21 1989 UTC vs.
Revision 1.3 by greg, Tue Dec 4 11:23:58 1990 UTC

# Line 8 | Line 8
8   *     10/1/85
9   */
10  
11 + #ifdef  BSD
12 +
13   extern long  random();
14  
15 < #define  frandom()      (random()/2147483648.0)
15 > #define  frandom()      (random()*(1./2147483648.))
16 >
17 > #else
18 >
19 > extern long  lrand48();
20 > extern double  drand48();
21 >
22 > #define  random()       lrand48()
23 > #define  frandom()      drand48()
24 >
25 > #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines