/usr/include/CLHEP/Random/RandomFunc.h is in libclhep-dev 2.1.4.1-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | // -*- C++ -*-
// $Id: RandomFunc.h,v 1.6 2010/06/16 17:24:53 garren Exp $
// -----------------------------------------------------------------------
// HEP RandomFunc
// get proper system headers for drand, etc.
// -----------------------------------------------------------------------
#ifndef RANDOMFUNC_H
#define RANDOMFUNC_H
// Those function are available on all unix platform but their
// prototypes are not included in stdlib when strict ANSI flag is set.
// Such behaviour was noticed with "KCC --strict" and "g++ -ansi".
//
// To provide declaration of those functions on Linux g++ should be used
// with -D_GNU_SOURCE. Similar options for non-Linux plaforms are:
// _HPUX_SOURCE, _IRIX_SOURCE, but we prefer just explicitely declare
// the functions on those platforms.
//
// drand48() extracted from GNU C Library 2.1.3 is used on Windows NT
// and Macintosh (see drand48.src)
#if !defined(__GNUC__)
extern "C" {
extern double drand48(void);
extern void srand48(long);
extern unsigned short * seed48(unsigned short int [3]);
}
#else
// only use stdlib.h if -D_GNU_SOURCE is present
#if defined(_GNU_SOURCE)
#include <stdlib.h>
#else
extern "C" {
extern double drand48(void);
extern void srand48(long);
extern unsigned short * seed48(unsigned short int [3]);
}
#endif
#endif
#include "CLHEP/Random/defs.h"
namespace CLHEP {
//#ifdef WIN32
//#include "drand48.src"
//#endif /* WIN32 */
//#ifdef __APPLE__
//#include "drand48.src"
//#endif /* __APPLE__ */
// configure checks for drand48
#ifndef HAVE_DRAND48
#if !defined(__GNUC__) // IRIX gets confused
#include "drand48.src"
#endif
#endif
} // namespace CLHEP
#ifdef ENABLE_BACKWARDS_COMPATIBILITY
// backwards compatibility will be enabled ONLY in CLHEP 1.9
using namespace CLHEP;
#endif
#endif // RANDOMFUNC_H
|