ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/random.h
Revision: 1.2
Committed: Mon Jul 14 22:24:00 2003 UTC (20 years, 9 months ago) by schorsch
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R6P1, rad3R6
Changes since 1.1: +14 -2 lines
Log Message:
Instrumented headers against multiple inclusion and for use from C++.
Moved includes in headers out of "C" scope.

File Contents

# User Rev Content
1 schorsch 1.2 /* RCSid: $Id: random.h,v 1.1 2003/02/22 02:07:26 greg Exp $ */
2 greg 1.1 /*
3     * random.h - header file for random(3) function.
4     *
5     * 10/1/85
6     */
7 schorsch 1.2 #ifndef _RAD_META_RANDOM_H_
8     #define _RAD_META_RANDOM_H_
9 greg 1.1
10 schorsch 1.2 #include <stdlib.h>
11    
12     #ifdef __cplusplus
13     extern "C" {
14     #endif
15 greg 1.1
16     #define frandom() (random()/2147483648.0)
17 schorsch 1.2
18     #ifdef __cplusplus
19     }
20     #endif
21     #endif /* _RAD_META_RANDOM_H_ */
22