projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed the definition of factors to be self referential.
[pspp-builds.git]
/
src
/
random.h
diff --git
a/src/random.h
b/src/random.h
index 91dec4ffea7f32ec549a0ce63e83188df3b702ba..7ab723773d83a48e485425ec672d014a8ea40bda 100644
(file)
--- a/
src/random.h
+++ b/
src/random.h
@@
-20,6
+20,8
@@
#if !random_h
#define random_h 1
#if !random_h
#define random_h 1
+#include <stddef.h>
+
struct rng *rng_create (void);
void rng_destroy (struct rng *);
void rng_seed (struct rng *, const void *, size_t);
struct rng *rng_create (void);
void rng_destroy (struct rng *);
void rng_seed (struct rng *, const void *, size_t);
@@
-31,4
+33,8
@@
double rng_get_double_normal (struct rng *);
struct rng *pspp_rng (void);
struct rng *pspp_rng (void);
+/* Return a `random' seed by using the real time clock */
+unsigned long random_seed(void);
+
+
#endif /* random.h */
#endif /* random.h */