projects
/
physik
/
nlsop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added copyright and license
[physik/nlsop.git]
/
random.h
diff --git
a/random.h
b/random.h
index
4fa9aae
..
e443f81
100644
(file)
--- a/
random.h
+++ b/
random.h
@@
-5,6
+5,9
@@
*
*/
*
*/
+#ifndef RANDOM_H
+#define RANDOM_H
+
#include "nlsop.h"
#include <math.h>
#include <stdio.h>
#include "nlsop.h"
#include <math.h>
#include <stdio.h>
@@
-12,9
+15,10
@@
/* function prototypes */
int rand_init(char *rf);
int rand_close(void);
/* function prototypes */
int rand_init(char *rf);
int rand_close(void);
-
int
get_rand(u32 max);
-
int
get_rand_lgp(u32 max,double a,double b);
+
u32
get_rand(u32 max);
+
u32
get_rand_lgp(u32 max,double a,double b);
#define BUFSIZE (16*1048576) /* 64 MByte */
#define URAND_MAX 0xffffffff
#define BUFSIZE (16*1048576) /* 64 MByte */
#define URAND_MAX 0xffffffff
+#endif /* RANDOM_H */