src
include
portable_utils.hpp
Go to the documentation of this file.
1
#ifndef PORTABLE_UTILS_H
2
#define PORTABLE_UTILS_H
3
4
#include <stdlib.h>
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
#ifndef HAVE_DRAND48
11
// Some system (e.g., Windows) doesn't come with drand48(), srand48().
12
// Use rand, and srand for such system.
13
static
double
drand48
(
void
)
14
{
15
return
((
double
)rand())/RAND_MAX;
16
}
17
18
static
void
srand48
(
long
int
seedval)
19
{
20
srand(seedval);
21
}
22
#endif
23
24
#ifdef __cplusplus
25
}
26
#endif
27
28
#endif
drand48
static double drand48(void)
Definition:
portable_utils.hpp:13
srand48
static void srand48(long int seedval)
Definition:
portable_utils.hpp:18
amcl
Author(s): Brian P. Gerkey, contradict@gmail.com
autogenerated on Mon Mar 6 2023 03:50:13