projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exit with error on signal
[fio.git]
/
lib
/
rand.h
diff --git
a/lib/rand.h
b/lib/rand.h
index 573116cbc2f7ec097bda77d97a3a0d669d30558f..f80c111a53f9083d19ad0c972920732cb7a51bef 100644
(file)
--- a/
lib/rand.h
+++ b/
lib/rand.h
@@
-1,6
+1,8
@@
#ifndef FIO_RAND_H
#define FIO_RAND_H
#ifndef FIO_RAND_H
#define FIO_RAND_H
+#define FRAND_MAX (-1U)
+
struct frand_state {
unsigned int s1, s2, s3;
};
struct frand_state {
unsigned int s1, s2, s3;
};
@@
-19,6
+21,8
@@
static inline unsigned int __rand(struct frand_state *state)
}
extern void init_rand(struct frand_state *);
}
extern void init_rand(struct frand_state *);
-extern void fill_random_buf(void *buf, unsigned int len);
+extern void init_rand_seed(struct frand_state *, unsigned int seed);
+extern void __fill_random_buf(void *buf, unsigned int len, unsigned long seed);
+extern unsigned long fill_random_buf(void *buf, unsigned int len);
#endif
#endif